I have a FMX application with a TTMSFNCGrid. In the grid I have some boolean calculated fields (displayed as check boxes). Additionally these columns are set to read only. But when I click in the columns, I can modify the check boxes. Do I something wrong or is this an error in the component?
Read-Only applies to the cell text, not to checkboxes.
If you want to disable checkboxes, you can use the following code:
procedure TForm1.TMSFNCGrid1GetCellProperties(Sender: TObject; ACol,
ARow: Integer; Cell: TTMSFNCGridCell);
begin
if Cell is TTMSFNCCheckGridCell then
(Cell as TTMSFNCCheckGridCell).ControlEnabled := False;
end;
Thank you, I will try that.
Thanks, it works