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 so that all the fields that have 007 in the column get coloured.