General information
Category:
Forms & Form designer
Look into "DynamicBackColor" of the column... You have a many approaches, but the simplest way would be...
In the init() method of the grid, something like
This.Column1.DynamicBackColor = "iif( some_field_value = 1, rgb( 255,0,0) , rgb( 0,0, 255)) "
where you could put your condition on whatever field, and the RGB() values you could get by using the color pallette and applying as a back color on a form or something to see what the values are... once found, apply them here...
If you want ALL columns to represent the colors, similar approach, but SETALL() method of the grid..
This.SetAll( "DynamicBackColor", "your iif statement like above", "column" )
and it will apply to ALL columns within the grid...
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only