How in Delphi dxDBGrid can I change the color of one row?
3 answers
You can use styles. The DevExpres grid in DBTableView has an event named: OnGetContentStyle in the Styles section.
You can create two styles at design time and apply the desired style at runtime.
procedure TFormBrBase.DBTableViewStylesGetContentStyle(
Sender: TcxCustomGridTableView; ARecord: TcxCustomGridRecord;
AItem: TcxCustomGridTableItem; out AStyle: TcxStyle);
With ARecord, you can access the actual values of a record. With these values, you define and change the value of the AStyle (out) parameter. This line is colored with this style.
Hey.
Neftali
Germán Estévez
+3
source to share