Jump to content

stringgrid color cell


jahlxx

Recommended Posts

You can use the TUniStringGrid.OnDrawCell event handler to set the cell colors.

procedure TMainForm.UniStringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
  var Value: string; Attribs: TUniCellAttribs);
begin
  if (ACol = 4) and (ARow = 7) then
    Attribs.Color := clRed;
end;

 

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...