Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Implement own sorting
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Implement own sorting

 Post Reply Post Reply
Author
Message
rune View Drop Down
Newbie
Newbie


Joined: 19 September 2010
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote rune Quote  Post ReplyReply Direct Link To This Post Topic: Implement own sorting
    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.
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
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.125 seconds.