Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Adding new row to GridCtrl... How to force a resort?
Re: Adding new row to GridCtrl... How to force a resort? [message #23383 is a reply to message #23376] |
Thu, 15 October 2009 19:02 |
jeremy_c
Messages: 175 Registered: August 2007 Location: Ohio, USA
|
Experienced Member |
|
|
Ok, this is done and ReSort() now exists. However, it does not seem to be paying attention to the actual sort order as specified by the user at the time ReSort() is called. For example, I have:
[ Date ] [ Name ] [ Number ]
----------------------------
10/12/09 Jim Doe 3.4
10/10/09 John Doe 12.5
05/18/07 Jeff Doe 5.0
The current sort order is Date Descending. When I edit "John Doe" and change the date to "10/18/09" and call ReSort() I get:
[ Date ] [ Name ] [ Number ]
----------------------------
05/18/07 Jeff Doe 5.0
10/12/09 Jim Doe 3.4
10/18/09 John Doe 12.5
Now, to make matters worse when sorting by Number, changing John Doe from 12.5 to 0.1, then calling .ReSort(), it resorts according to Date Ascending order, not Number which is what I had selected at the time.
My setup code for the grid sets initially:
So, it seems to always be reverting to that not what the user may have changed it to.
Any ideas?
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: Mon May 13 02:51:17 CEST 2024
Total time taken to generate the page: 0.01948 seconds
|