Hi,
Actually i have two question:
-
There is a way to horizontal align (to center) a checkbox from a range of a Livegrid?
-
How can i disable inputing text in the range where checkbox exist (but checkbox still can be usable)?
Hi,
Actually i have two question:
There is a way to horizontal align (to center) a checkbox from a range of a Livegrid?
How can i disable inputing text in the range where checkbox exist (but checkbox still can be usable)?
hi,
Yes at both questions:
procedure TForm4.TMSFMXGrid1GetCellProperties(Sender: TObject; ACol,
ARow: Integer; Cell: TFmxObject);
begin
if Cell is TTMSFMXCheckGridCell then
begin
(Cell as TTMSFMXCheckGridCell).CheckBox.Align := TAlignLayout.Center;
end;
end;
You need to add a data checkbox column instead of a normal checkbox column to block editing
TMSFMXGrid1.AddDataCheckBoxColumn(3);
Thank you!