Changing the color of one row of DBInspector

I have a dxDBInspector that I need to highlight one line ( edtSDate

) out of nine in green. Color properties change colors for all lines within the inspector.

I tried:

edtSDate.Inspector.Canvas.Brush.Color := clGreen;

      

I've also seen How in Delphi dxDBGrid can I change the color of one row?

But dxDBInspector doesn't have OnCustomDraw / OnGetContentStyle events.

The exact component is dxDBInspector from Dev Express and I'm on Delphi 7.

+3


source to share


1 answer


Changing the variables in the event OnDrawValue

fixed it for me. I was having trouble with this because there is existing code (legacy project) that would automatically schedule this event so that all inspectors match, but once I got around that it was simple.



All I did was assign the event-generated clGreen

variable for the string.AColor

OnDrawValue

0


source







All Articles