Chaim,
> .SetAll( "DynamicForecolor", "thisform.RowColor()", "column" )
This line will set all columns of the grid, it doesn't matter how many columns the grid contains.
> case ...
> lnColor = rgb( 255, 0, 0 )
You have to fill in the ... with whatever conditions you have that define each of the colors you are wanting to use. You use whatever the column name is that contains the values like 'aaa' etc. I don't use the _genxtab function enough to know what column names it creates out of the process. You can use afields() to find the column names of the cursor.
>Here is the problem:
>The genxtab column count can be 4, can be 8 and can be 5 etc, and every time with diffrent header names.
>How do I speak with grid values?
>What need I write in the cases?
>
case ? = 'aaa'
>this?=(rgb)250,250,11