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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With