SortOrderChanged event |
Post Reply |
Author | |
mellysully
Groupie Joined: 09 June 2009 Status: Offline Points: 19 |
Post Options
Thanks(0)
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
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
You have SortOrderChanged, you can check ReportControl.SortOrder for the last column added to sort, then use ReportColumn.SortAscending to see direction.
|
|
mellysully
Groupie Joined: 09 June 2009 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
I can not see how it will work. Columns are sorted itself than the coding to sort the columns. |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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.
|
|
mellysully
Groupie Joined: 09 June 2009 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
Thank you very much Super Mario. :-)
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |