AlastairOz
Technical User
I am trying to get a grid to have different row colours according to the current status of that row. For instance:
If column called "Progress" has "OVERDUE!" in the row then the row should be say coloured red.
If another row has the "Progress" as being "Near Due" then
the colour of that row should be say green.
When I use the DynamicBackColor property, eg:
thisform.grdjobs.setall("DynamicBackColor","iif( Progress = ALLTRIM(UPPER('OVERDUE!!')), rgb(255,70,70), rgb(255,255,255) )","Column")
thisform.grdjobs.setall("DynamicBackColor","iif( Progress = ALLTRIM('Assign NOW!'), rgb(0,255,0), rgb(255,255,255) )","Column")
The second function is evaluated, in this case only
the rows where "Progress" is 'Assign NOW!' are
coloured green. The first function is not evaluated, or the second function is over writing the first.
How do I get different colours for different rows?
(Different colours in the same grid at the same time)
If column called "Progress" has "OVERDUE!" in the row then the row should be say coloured red.
If another row has the "Progress" as being "Near Due" then
the colour of that row should be say green.
When I use the DynamicBackColor property, eg:
thisform.grdjobs.setall("DynamicBackColor","iif( Progress = ALLTRIM(UPPER('OVERDUE!!')), rgb(255,70,70), rgb(255,255,255) )","Column")
thisform.grdjobs.setall("DynamicBackColor","iif( Progress = ALLTRIM('Assign NOW!'), rgb(0,255,0), rgb(255,255,255) )","Column")
The second function is evaluated, in this case only
the rows where "Progress" is 'Assign NOW!' are
coloured green. The first function is not evaluated, or the second function is over writing the first.
How do I get different colours for different rows?
(Different colours in the same grid at the same time)