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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cell Height in GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

14517 May 28,2004 04:07 AM UTC May 28,2004 10:15 AM UTC WinForms 2
loading
Tags: GridControl
Anil Kumar M
Asked On May 28, 2004 04:07 AM UTC

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.

Administrator [Syncfusion]
Replied On 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.

Administrator [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;