Using Delphi 11.1 the application is of the FMX (FireMonkey) type.
I have a TStringgrid with a TCheckColumn.
The grid does not show the checkbox.
If I click two times on the cell the state changes and the the box is shown, after that it behaves normally.
I set the value of a cell in code like
StringGrid1.Cells[CHECKBOX_COLUMN, iIndex]:= BoolToStr(False);
Reading like
boMyBoolean := StringGrid1.Cells[CHECKBOX_COLUMN, 0].ToBoolean;
Help is very much appreciated.
BoolToStr has two arguments:
If you call it with
UseBoolStrs = Truethen theStringGridreacts as you expect:E.g. during
FormCreate:where the first column is a
TCheckColumnand the second column is aTStringColumnshowsAnd reacts as you expect it to, to subsequent changes.