>I think I have seen here somewhere about making alternate rows of a grid a different color. This is what I am trying to do. I know there is a column property to do this for columns, but what about rows?
>I think I have seen here somewhere about making alternate rows of a grid a different color. This is what I am trying to do. I know there is a column property to do this for columns, but what about rows?
Re-post (first time it didn't save).
Add one field to your table, say, NumOrd. Replace NumOrd with 1,2,3.... (note, this would work only in one predefined order). Now you can use
this.SetAll("DynamicBackColor", "IIF(NumOrd%2=0," + ;
str(.cCurRecBackColor)+","+str(.BackColor)+")", "Column")
I use Cetin's highlighted grid, so you just have to modify its Init expression.
The code is of the top of my head and untested.
BTW, you can use Nick's GridHighlighter, you just have to set condition for condition highlight. In your case it would be NumOrd%2=0 or mod(NumOrd,2)=0
If it's not broken, fix it until it is.
My Blog