ainsama1 Posted September 26, 2018 Posted September 26, 2018 Hi, I have this Grid that shows the PC parts. But instead of displaying the Items, it displayed "(Memo)". I've read many threads it says it can be done like this: procedure TForm1.DBGrid1DrawDataCell(Sender: TObject; const Rect: TRect; Field: TField; State: TGridDrawState); var S: String; begin if Field.DataType = ftMemo then begin S := Field.AsString; DBGrid1.Canvas.Pen.Color := clWindow; DBGrid1.Canvas.Brush.Color := clWindow; DBGrid1.Canvas.Rectangle(Rect); DBGrid1.Canvas.TextOut(Rect.Left, Rect.Top, S); end; end; But the UniDBGrid1.Canvas shows error. May i know your suggestions. Thanks Quote
Sherzod Posted September 26, 2018 Posted September 26, 2018 Hello, UniDBGrid -> Columns[xx] -> DisplayMemo = True Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.