Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
jeremy_c is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Doing my own thing with the ADD button on GridCtrl?
Next Topic: Arrayctrl and scroll lines
Goto Forum:
  


Current Time: Sun Apr 28 21:13:36 CEST 2024

Total time taken to generate the page: 0.03624 seconds