Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 21 May 2022, 15:14

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 17 Feb 2019, 00:16 
Offline

Joined: 17 Feb 2019, 00:09
Posts: 4
hi

I'm would like to set the rowheight automaticly for displaying
the text of a blob or text field. (mysql table)

- OptionEh.AutoFitRowHeight = True
- OptionEh.FitRowHeightToText = Treu
- RowSizingAllowed = true
- DrawMemoText =true

But nothing seems to work ..


Top
 Profile  
 
PostPosted: 20 Feb 2019, 16:47 
Offline

Joined: 08 May 2014, 18:06
Posts: 533
Hello

1. You should use dghAutoFitRowHeight in OptionsEh to make grid calculate row height depending on the text.
2. This mode works only when the grid is connected to the DataSet of TMemTableEh.

Quote:
> "EhLib Users Guide.doc"
Individual height of each data row.
TDBGridEh can work in mode when the height of every row is calculated dynamically depending on the text in the grid cells or size of image in the cell (When DrawGraphicData value is True). Include dghAutoFitRowHeight in OptionsEh property to force grid to calculate height for every row. This mode works only when the grid is connected to the DataSet of TMemTableEh type and TMemTableEh is not in TreeView mode. When dghAutoFitRowHeight is included, grid calculates the height of the row dynamically using cell text (TColumnEh.WordWrap property also influence it) and for column the fields of which have ftGraphic type. To avoid surplus recalculation, grid recalculates heights, but not for after every change of properties. For instance, grid does not update heights if the Font property was changed. In such cases it is necessary to call UpdateAllDataRowHeights method. For more flexible calculation of the heights the grid has an OnGetRowHeight event, in which you can specify the height of row. During the event calling, the MemTableEh positions on record and we can calculate the height of this record, so you can use MemTableEh properties to access fields values.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group