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

Resize row height

Thread ID:





3739 Apr 4,2003 12:56 PM UTC Apr 4,2003 04:00 PM UTC WinForms 1
Tags: GridControl
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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon