I cannot get the checkboxes to center in the cells. Also, how do I make it so the checkboxes cannot be checked by clicking them with the mouse? I do want to update the state with code though.
procedure TfrmMain.gridMainGetCellLayout(Sender: TObject; ACol, ARow: Integer;
ALayout: TTMSFMXGridCellLayout; ACellState: TCellState);
begin
gridMain.BeginUpdate;
if ARow = 0 then ALayout.TextAlign := TTextAlign.taCenter
else begin
if ACol = 0 then ALayout.TextAlign := TTextAlign.taCenter;
end;
gridMain.EndUpdate;
end;
Thanks,
Brent