Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Adding new row to GridCtrl... How to force a resort?
Adding new row to GridCtrl... How to force a resort? [message #23373] |
Wed, 14 October 2009 14:08 |
jeremy_c
Messages: 175 Registered: August 2007 Location: Ohio, USA
|
Experienced Member |
|
|
My grid control is user sortable. The grid control just displays a small summary of the actual records data. There is an Add button on my form. When the user presses the Add button a complex dialog appears to allow them to enter the data needed. They then click save. At that, I add the new row to the GridCtrl but at this point I would like it to not appear at the bottom but in the correct location based on the current sort order.
I looked through the methods, I was hoping for something like .Resort() but did not find it. I do see .Sort() but I am unsure of how to get the current multisort order and direction (i.e. column 1 is UP, column 2 is DOWN and column 5 is UP... who knows what the user will actually do, that was just an example).
Any help is appreciated!
Jeremy
|
|
|
|
|
Adding new row to GridCtrl... How to force a resort?
By: jeremy_c on Wed, 14 October 2009 14:08
|
|
|
Re: Adding new row to GridCtrl... How to force a resort?
By: unodgs on Wed, 14 October 2009 21:11
|
|
|
Re: Adding new row to GridCtrl... How to force a resort?
By: jeremy_c on Thu, 15 October 2009 19:02
|
|
|
Re: Adding new row to GridCtrl... How to force a resort?
By: unodgs on Thu, 15 October 2009 22:37
|
|
|
Re: Adding new row to GridCtrl... How to force a resort?
By: jeremy_c on Thu, 15 October 2009 22:39
|
|
|
Re: Adding new row to GridCtrl... How to force a resort?
By: jeremy_c on Sat, 17 October 2009 15:02
|
|
|
Re: Adding new row to GridCtrl... How to force a resort?
By: unodgs on Sat, 17 October 2009 22:33
|
|
|
Re: Adding new row to GridCtrl... How to force a resort?
By: jeremy_c on Sat, 17 October 2009 22:44
|
|
|
Re: Adding new row to GridCtrl... How to force a resort?
By: jeremy_c on Sat, 17 October 2009 23:25
|
|
|
Re: Adding new row to GridCtrl... How to force a resort?
By: unodgs on Sun, 18 October 2009 10:10
|
|
|
Re: Adding new row to GridCtrl... How to force a resort?
By: jeremy_c on Sun, 18 October 2009 12:37
|
Goto Forum:
Current Time: Thu May 23 16:54:14 CEST 2024
Total time taken to generate the page: 0.01981 seconds
|