delphi - coloring cxdbgrid field depending on its content
问题 I am not exactly sure how to put this. I am coloring cxDB grid field based on the value: procedure TForm1.cxGrid1DBTableView1StylesGetContentStyle( Sender: TcxCustomGridTableView; ARecord: TcxCustomGridRecord; AItem: TcxCustomGridTableItem; var AStyle: TcxStyle); var AColumn: TcxCustomGridTableItem; begin AColumn := (Sender as TcxGridDBTableView).GetColumnByFieldName('SIFRA'); if VarToStr(ARecord.Values[AColumn.Index]) = '007 01' then AStyle := cxstyle1; end; I would like to change the code