>As per the attached pic, I use DynamicForeColor in the Init of a grid to set the forecolor of rows depending on table data.
>
>My question is how do I get the highlighted grid color to show the same forecolor as it was before the row was highlighted?
>
>Many thanks for the help!
In the AfterRowColChange() event code of the grid, include this statement:
This.HighlightForeColor = EVALUATE(This.Columns[1].DynamicForeColor)
and fire AfterRowColChange() at an early stage (Init(), GotFocus(), where it will be more appropriate considering the setup of the grid), to set the colors for the first time.
----------------------------------
António Tavares Lopes