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 : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Resize row height

Thread ID:

Created:

Updated:

Platform:

Replies:

3739 Apr 4,2003 12:56 PM UTC Apr 4,2003 04:00 PM UTC WinForms 1
loading
Tags: GridControl
Peter
Asked On April 4, 2003 12:56 PM UTC

I have a databoundgrid with resizetofit = false because of having a column which is extended to the greatest width to fill out the client area of the grid. Now I need some cells in a column to be as large as the text which is in it (AllowSize and WrapText = true). eg. in a cell is a value of texttype -> resize in a cell is a value of datetype -> don't resize Have any idea how to do that? Peter

Administrator [Syncfusion]
Replied On April 4, 2003 04:00 PM UTC

After one of your datecolumns changes (maybe catch it in CurrentCellConfirmChanges), try explicitly calling grid.Model.ColWidths.ResizeToFit passing in a range containing your cell. The autosize style property only works as text is being typed into a TextBox cell. It does not work for a MonthCalendar cell.

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

;