Print Page | Close Window

Implement own sorting

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17281
Printed Date: 05 October 2024 at 1:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Implement own sorting
Posted By: rune
Subject: Implement own sorting
Date Posted: 19 September 2010 at 3:31pm
I have a my own sorting on the behind data. 

What event is the best to use? 
Is there a before sort event,columnheader click or something like that?

Now I use this hittest on mouseclick but this event fires to often and it fires my sorting to often.



Replies:
Posted By: Aaron
Date Posted: 21 September 2010 at 1:54am
Hi,
 
My best guess would be SortOrderChanged event. Clicking column in header and in groupbox will fire this event.
 
Do you have somekind of special sorting algorithm? Sorting in ReportControl is pretty good once you know how. Look at the properties SortPriority, GroupPriority and Format. These properties can be quite usefull when sorting is applied. Even sorting types like time, date, long and integer are supported. Maybe you would like to use ReportControl sorting instead of your own and maybe not, depends on needed algorithm(s) of course.
 
Hope this helps Wink
 
   


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



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