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 » Retreiving data from sorted GridCtrl
Re: Retreiving data from sorted GridCtrl [message #37105 is a reply to message #37103] Thu, 23 August 2012 10:09 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

nixnixnix wrote on Wed, 22 August 2012 23:09

This must have been asked before so I apologise in advance but I couldn't find it when searching.

When I sort a GridCtrl, I find I can still retrieve data by the original row number for the Ctrls that I have added myself as, of course, they can be accessed by their original index in my Array of Ctrl objects. However, I do not see how to access data that is just sitting in the GridCtrl itself and that is not longer in its original row due to sorting. I know there must be a way to do this already but how?
Nick


Use:
Item& GetItem(int n, int m)
n is a row number related to sort order used to paint the grid.

[Updated on: Thu, 23 August 2012 11:19]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DropGrid .t file
Next Topic: SetDisplay, which works for column why not for cells ??
Goto Forum:
  


Current Time: Thu May 16 00:31:27 CEST 2024

Total time taken to generate the page: 0.03500 seconds