Re: Grid Values
Posted: Thu Aug 11, 2022 5:08 pm
Thanks Gabor, This works but I need it refined.
What I want to do is if field-> value is 1 i want only column1 with color the other columns are black ( this works as a second header
Otherwise all columns are coloured as below but I cannot get if yo work in grid for dynamicbackcolor
What I want to do is if field-> value is 1 i want only column1 with color the other columns are black ( this works as a second header
Otherwise all columns are coloured as below but I cannot get if yo work in grid for dynamicbackcolor
Code: Select all
public bl
public blcolor := {0,0,0}
public bcolor := { || if (this.Cellrowindex/2 == int(this.CellRowIndex/2) ,{210,120,255}, {100,100,255})}
if field->code == 1
bl := .t.
else
bl := .f.
endif
IN GRID
if bl = .t.
dynamicbackcolor{ bcolor,blcolor,blcolor,blcolor,blcolor,blcolor}
else
dynamicbackcolor{bcolor,bcolor,bcolor,bcolor,bcolor,bcolor}
endif