Print Page | Close Window

SortOrderChanged event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16580
Printed Date: 16 November 2024 at 4:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SortOrderChanged event
Posted By: mellysully
Subject: SortOrderChanged event
Date 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
 



Replies:
Posted By: SuperMario
Date 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.


Posted By: mellysully
Date 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.



Posted By: SuperMario
Date 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.


Posted By: mellysully
Date Posted: 15 April 2010 at 5:00am
Thank you very much Super Mario. :-)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net