the object Inspector. Do I have to do it in code?
OK so do you have the code to use?
**dbgrid property: dgRowHighlight = true dgrowSelect = false **dbgrid event onpreparecanvas: if (gdSelected in AState) or (gdRowHighlight in AState) then begin dbgrid1.canvas.Brush.color := $0051F7E9; dbgrid1.canvas.font.color := $00B26D17; dbgrid1.canvas.font.style := [fsbold] end; I suggest creating a helper with the code above to standardize your application (google translate)
Try use TDBGrid.AlternateColor property
Great, thank you it works.
Обсуждают сегодня