stevewong Posted November 16, 2017 Share Posted November 16, 2017 Hi, I would like to display/edit a memo field in a unidbgrid, my code is as below : ClientDataSet1.FieldDefs.Add('Remark', ftmemo,200 ); ClientDataSet1.CreateDataSet; Clientdataset1.Close; AField := clientdataset1.FieldDefs[0].CreateField(clientdataset1); ClientDataSet1.Active := True; ClientDataSet1.AppendRecord(['line1, line2... in memo']); My problem is : if displaymemo = false then the DBgrid will show the word (memo) within the cell. if set set displaymemo := true, I can see the memo content but I was not able to edit it. Is there a way when I click on the cell, a memo box will come out so that i can edit the text inside ? I then try to set unidbgrid1.Columns[0].Editor := unimemo1 and was also failed. What should I do, please help ! Regards, Steve Link to comment Share on other sites More sharing options...
Sherzod Posted November 16, 2017 Share Posted November 16, 2017 Hi, I then try to set unidbgrid1.Columns[0].Editor := unimemo1 and was also failed.What problem do you have? Link to comment Share on other sites More sharing options...
stevewong Posted November 18, 2017 Author Share Posted November 18, 2017 I just want to show a memo box when I click on one of the cell under the remark column. At present DBGrid show the text and did not allow me to edit. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 19, 2017 Administrators Share Posted November 19, 2017 Please see our grid editor demo. UniMemo1 must be placed on a TUniHiddenPanel component. It also should be created at design time or in OnCreate event of the Owner form. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now