Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - SortOrderChanged event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SortOrderChanged event

 Post Reply Post Reply
Author
Message
mellysully View Drop Down
Groupie
Groupie


Joined: 09 June 2009
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote mellysully Quote  Post ReplyReply Direct Link To This Post Topic: SortOrderChanged event
    Posted: 13 April 2010 at 8:11am
Hi,
 
Columnclick event does return the specific column  when the column is right clicked, but when you click the column and call sortorderchanged, it doesnt tell you the specific column being clicked and as well as not telling you whether its ascending or desacending. Please can you tell me if there is a work around for that?
 
I need to know which column is clicked and whether if its being sorted ascending or not.
 
Many thanks
 
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 13 April 2010 at 8:42am
You have SortOrderChanged, you can check ReportControl.SortOrder for the last column added to sort, then use ReportColumn.SortAscending to see direction.
Back to Top
mellysully View Drop Down
Groupie
Groupie


Joined: 09 June 2009
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote mellysully Quote  Post ReplyReply Direct Link To This Post Posted: 13 April 2010 at 9:00am

I can not see how it will work. Columns are sorted itself than the coding to sort the columns.

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2010 at 8:24am
If you click a column to sort it then it is added to ReportControl.SortOrder.  You can then check the ReportControl.SortOrder for the columns and get their order and ascending\descending.
Back to Top
mellysully View Drop Down
Groupie
Groupie


Joined: 09 June 2009
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote mellysully Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2010 at 5:00am
Thank you very much Super Mario. :-)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.