jahlxx Posted November 14, 2018 Share Posted November 14, 2018 Hi. How to set a color to a cell of a stringgrid. For example, set the cell [4,7] to red. thanks. Link to comment Share on other sites More sharing options...
mos Posted November 14, 2018 Share Posted November 14, 2018 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 More sharing options...
Sherzod Posted November 15, 2018 Share Posted November 15, 2018 Please look at this demo: \FMSoft\Framework\uniGUI\Demos\Desktop\StringGrid Demo Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now