How can I edit a memo field in the TMSFNCDataGrid? I tried to set the editor on the memo field to getHTMLEditor or getMemo in the demo DataGrid\Database\Biolife_ClientdataSet. That didn't work.
I use Delphi 11.2 and tms.fnc.uipack(6.3.0.0)
This is because the memo field is stored as binary format, and by default read-only. To read & write it, follow these steps below:
-
Right-click on "Fields", select "Add All Fields"
-
Select Notes {ClientDataSet1Notes}
-
Implement OnGetText & OnSetText events
procedure TForm1.ClientDataSet1NotesGetText(Sender: TField; var Text: string;
DisplayText: Boolean);
begin
Text := Sender.AsString;
end;
procedure TForm1.ClientDataSet1NotesSetText(Sender: TField;
const Text: string);
begin
Sender.AsString := Text;
end;
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.