Henry Olive 5 Posted Thursday at 07:23 AM D-10,4 Good Day MyField = Varchar(1500) MyDBGrid.Width = 400 Is it possible to wrap texts inside each row if my field's data longer than dbgrid field width ? Something like below ID History 1 aaaaaa bbbbb cccccc 2 xxxxxx Thank You Share this post Link to post
PeterBelow 238 Posted Friday at 12:55 PM On 11/21/2024 at 8:23 AM, Henry Olive said: D-10,4 Good Day MyField = Varchar(1500) MyDBGrid.Width = 400 Is it possible to wrap texts inside each row if my field's data longer than dbgrid field width ? Something like below ID History 1 aaaaaa bbbbb cccccc 2 xxxxxx Thank You TDBGrid does not support that. If you have fields with long text a grid is not the best way to show it, better use a TDBMemo in addition to the grid and tie it to the field in question. It will them show the field content of the record active in the grid as the user scrolls through the records. Share this post Link to post
Vandrovnik 214 Posted Friday at 07:24 PM On 11/21/2024 at 8:23 AM, Henry Olive said: D-10,4 Good Day MyField = Varchar(1500) MyDBGrid.Width = 400 Is it possible to wrap texts inside each row if my field's data longer than dbgrid field width ? Something like below ID History 1 aaaaaa bbbbb cccccc 2 xxxxxx Thank You You can draw whatever you want in OnDrawColumnCell but AFAIK, all rows must have the same height. Share this post Link to post