The following code relates to the value of qryCBDOC.value in a record. But when the condition is satisfied it results in the font color for the entire column being changed to Red in the grid. Can someone please tell me how I can get the font color to change for only that line (that is to say for only that record) in the grid?
if system.Copy(qryCBDOC.value,1,1) = 'D' then // Change color of font for column 9
begin
grdCB.columns.items[9].Font.Color:= clred;
end;
if system.Copy(qryCBDOC.value,1,1) = 'D' then // Change color of font for column 9
begin
grdCB.columns.items[9].Font.Color:= clred;
end;