↧
From: | Thierry Nivelet (FoxInCloud) |
To: | Tuvia Vinitsky |
PROCEDURE somemethod
thisform.grid.columnx.img.Visible = table1.amount>0
return rgb(255,255,255) && white
What do you suggest for workaround, the client has a gird and in ColumnX there is a text control (empty) and an image control with a certain picture. He uses
.dynamiccurrentcontrol = iif(table1.amount>0 , 'textcontrol', 'imagecontro;')
Thus thre image shows for those rows where the amount is positive.
Each row can be edited in the grid, so the image cannot just be set once. The grid data source is a cursor (and must be a cursor).
-- thn (FoxInCloud)