We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Cell Height in GridDataBoundGrid

Hi Iam using GridDataBoundGrid. The cell height of the GridDataBoundGrid is not resizing when multiline text is enterd in richtext of the cell..Is it a bug or is there any way to rectify it. AutoSize property is set to true and WordWrap property is also set to true. still the cell height is not incrementing its height.

2 Replies

AD Administrator Syncfusion Team May 28, 2004 06:24 AM UTC

The style.AutoSize property only affects the row height when the user types into the cell. Is this where you are seeing the problem? If so, can you post a little sample project showing what you are doing, as this should work. If you want to autosize text that comes directly from the datasource (not the user typing it), then you should call grid.Model.RowHeights.ResizeToFit, passing in the range you want to resize.


AD Administrator Syncfusion Team May 28, 2004 10:15 AM UTC

Sorry, I missed the point that you were using a RichText celltype. We currently do not support autosizing richtext cells. We will offer this in a future release (do not know a date). One thing you might consider if this is something you really need, is that you can catch the CurrentCellClosedDropDown for the RichText cell. In the handler, you could try manually adjust the rowheight. But the problem is that there is no way exposed to get the ''prefferred height''. But if you have special knowledge of the text, maybe you could come up with some way of deciding how high the cell needs to be, and set that height in the event handler.

Loader.
Up arrow icon