In a AdvStringGrid i have 3 Columns with Boolean Data and set a Checkbox in this Columns with:
For i := 1 to grd.RowCount - 1 do
begin
for j := 1 to ColCountMax - 1 do
begin
Case j of
7, 8, 9, 10, 12, 13:
grd.Alignments[j, i] := taRightJustify;
15, 16, 17:
begin
grd.Alignments[j, i] := taCenter;
===> grd.AddCheckBox(j, i, AQuery.FieldByName(GridFieldNames[j]).AsBoolean);
end;
End;
end;
AQuery.Next; // Nächste Zeile in DB
end;
When Running the Programm then in the Grid there are not only the Checkboxes but also the Text 'True' or 'False' right of the checkbox.
Do you know this problem and what am i doing wrong here.