The field really is a CHAR(1) that can hold 'N' or 'Y' values.
I can insert a check box in a CELL with this code...
procedure TGetLInsDlnSlsController.OnGetCellClass(Sender: TObject; ACol, ARow: Integer; var CellClassType: TFmxObjectClass);
begin
if (ARow >= FView.LiveGrid.FixedRows) and (ACol = CHECKED) then begin
CellClassType := TTMSFMXCheckGridCell;
end;
end;
But now I need that the CheckBox, show checked if the Field have a 'Y' and unchequed if have 'N'.
And if the user clicks on the CheckBox, the change shall be updated in the Linked DataSet.
Remembering that Its a LiveBinded LiveGrid!