Can you advise how to hide/remove the true/false text when changing a checkbox between states.
Can you explain in which circumstances this happens? You could hide the text with the OnBeforeDrawCell, removing the text from the cell drawing elements
procedure TForm1.TMSFNCDataGrid1BeforeDrawCell(Sender: TObject;
AGraphics: TTMSFNCGraphics; ACell: TTMSFNCDataGridCell;
var ACanDraw: Boolean);
begin
ACell.DrawElements := ACell.DrawElements - [gcdText];
end;
Thanks, it works a treat. I appears to occur by default as the checkbox was added with AddDataCheckBoxColumn(0) . No other reference was made to it.
1 Like
Data checkbox indeed uses the value of the cell for the check state. You can use AddCheckBoxColumn as well to decouple, and use Booleans for the check state.