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. Quote 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; Quote 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.