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

ResizeToFit() suggestion

Thread ID:





13048 Apr 19,2004 05:47 PM UTC Apr 19,2004 10:33 PM UTC WinForms 1
Tags: GridControl
Asked On April 19, 2004 05:47 PM UTC

It would be nice to have a MinHeight in the g.Model.RowHeights.ResizeToFit() since sometimes the row height can be bigger to make it look less cluttered TIA, Peter

Administrator [Syncfusion]
Replied On April 19, 2004 10:33 PM UTC

There is a static member of GridCellModelBase, MeasureEmptyCellString, that determines what size the ResizeToFit will use for an empty cell. So if you include the RowHeaders in your resizing range (as the row headers have not text), then this member will trigger a minimum size. GridCellModelBase.MeasureEmptyCellString = "Wg;\r\nWg;"; this.gridDataBoundGrid1.Model.RowHeights.ResizeToFit(GridRangeInfo.Table());


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