I have in the initialization of the grid, the next block of code.
FView.GridLines.Options.Editing.Enabled := False;
,,,
FView.GridLines.CheckTrue := 'Y';
FView.GridLines.CheckFalse := 'N';
FView.GridLines.Columns[SPECIAL].ColumnType := TTMSFMXGridColumnType.ctCheckBox;
FView.GridLines.Columns[OK ].ColumnType := TTMSFMXGridColumnType.ctCheckBox;
But I want that the CheckBox, only show the value, do not allow the user to change it.
The user, in this situation can change the CheckBox value, clicking on it.
I added on row insertion the next code:
FView.GridLines.ReadOnlys[CD_ITEM , ARow] := True;
....
FView.GridLines.ReadOnlys[OK , ARow] := True;
FView.GridLines.ReadOnlys[SPECIAL , ARow] := True;
FView.GridLines.ReadOnlys[SPECIAL_IN , ARow] := True;
But the check box allow change the value.
How to avoid user interaction with some columns or cells?
How to disallow the user to interact with controls in the cells?