Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Two "basic" operations on GridCtrl
Re: Two "basic" operations on GridCtrl [message #21082 is a reply to message #21027] |
Sat, 02 May 2009 12:14 |
kbyte
Messages: 87 Registered: July 2008
|
Member |
|
|
Hi,
I a trying another feature of the dbgridCtrl but without success
In the dbgrid control I have columns with text, others with numbers other with dates. I need that sorting capability respect the type of the data that the sorted column has.
To the best of my knowledge, dbgrid sorts columns using text data type. What about if we want to cutomize the sorting?
I am trying that with
dbGridCtrl.WhenSort= THISBACK(OnCustomSort);
But, when OnCustomSort is called how do we know which column was click to be sorted?
How to implement custom sort inside OnCustomSort? A simple example would be very appreciated.
One more question please:
Can we "turn off" a callback during runtime?
Like this:
For some moments i need that dbgrid implement custom sorting so i do this:
dbGridCtrl.WhenSort= THISBACK(OnCustomSort);
But when i want to return to the default sorting of the dbgrid, how to turn off this callback?
I tryed to set NULL in WhenSort but compiler complains
Thanks a lot
Kim
[Updated on: Sat, 02 May 2009 12:16] Report message to a moderator
|
|
|
|
|
Two "basic" operations on GridCtrl
By: kbyte on Sun, 26 April 2009 18:27
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Sun, 26 April 2009 20:46
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Sun, 26 April 2009 21:17
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Sun, 26 April 2009 21:43
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 27 April 2009 00:04
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 27 April 2009 00:35
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 27 April 2009 08:47
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Sat, 02 May 2009 12:14
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 04 May 2009 09:39
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 04 May 2009 12:52
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 04 May 2009 13:37
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 04 May 2009 14:02
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 04 May 2009 15:22
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 04 May 2009 15:52
|
|
|
Re: Two "basic" operations on GridCtrl
|
Goto Forum:
Current Time: Wed May 01 04:44:12 CEST 2024
Total time taken to generate the page: 0.01912 seconds
|