I would like all rows where in particular field name 'hello' is present to get colored
green. I tried this on customdrawcell
:
if abstable1.fieldbyname('somename').asstring = 'Hello' then
cxgrid.canvas.brush.color:=clGreen
But it wont work... what am I missing here ?
Use the OnGetContentStyle event for either individual columns or the grid object. Styles are much easier to work with than messing with the canvas.