FNCDataGrid ReadOnly-Mode

The Property Options.Editing.Enabled := False does not allow to mark/copy the contents of a Cell.

It would be great if TTMSFNCDataGrid would support a ReadOnly-Mode where users can mark/copy the contents of a Cell but not edit its value.

Is this somehow possible or would that be a new feature?

Hi,

If editing is disabled, you cannot put an inplace editor. Alternatively, you can add a read-only inplace editor as well

procedure TForm1.TMSFNCDataGrid1GetInplaceEditorProperties(Sender: TObject;
  ACell: TTMSFNCDataGridCellCoord; AInplaceEditor: TTMSFNCDataGridInplaceEditor;
  AInplaceEditorType: TTMSFNCDataGridInplaceEditorType);
begin
  if AInplaceEditor is TTMSFNCDataGridEdit then
    (AInplaceEditor as TTMSFNCDataGridEdit).ReadOnly := True;
end;

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.