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 » Change row appearance based on column value in that row
Re: Change row appearance based on column value in that row [message #46768 is a reply to message #46634] Sun, 31 July 2016 14:02 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I guess the basic examples quite shows it:

http://www.ultimatepp.org/reference$ArrayCtrl$en-us.html

See how MyConvert is used.

The thing to know is that what goes to Convert and Display can be just loosly related to row cells. Basic AddColumn starts with "single Value", however you can Add more indicies to the column, in that case you will get ValueMap instead of single Value in Display.

So basically, you need to AddIndex (which does not add column), then for each AddColumn add this index. In Display you will get ValueMap of column value combined with this 'index'.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cursor row color/headers color in ArrayCtrl and SQLCtrl
Next Topic: How to hide/show gridctrl column at runtime
Goto Forum:
  


Current Time: Tue May 07 07:37:55 CEST 2024

Total time taken to generate the page: 0.01880 seconds