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

GridControl.RowHeights.ResizeToFit() - Minimum height?

Thread ID:





17300 Aug 5,2004 07:53 AM Aug 5,2004 08:16 AM Windows Forms 1
Tags: GridControl
Roy Muller
Asked On August 5, 2004 07:53 AM

Which property do I use to specify the minimum height to use when RowHeights.ResizeToFit() is called? Is it GridControl.DefaultRowHeight? GridControl.MinResizeRowSize? Some other property perhaps? In version there was a bug in this area where I worked around this problem as follows: for( int l_iRowIndex = 1; l_iRowIndex <= m_PatientDataView.RowCount; l_iRowIndex++ ) { // resize the row to fit all the cell contents m_gcPatientGrid.RowHeights.ResizeToFit( GridRangeInfo.Row( l_iRowIndex )); // if the resize shrunk the row height below the MinResizeRowSize then // set the row height to the MinResizeRowSize if( m_gcPatientGrid.MinResizeRowSize > m_gcPatientGrid.RowHeights[ l_iRowIndex ]) { m_gcPatientGrid.RowHeights[ l_iRowIndex ] = m_gcPatientGrid.MinResizeRowSize; } } Do I still have to do this?

Administrator [Syncfusion]
Replied On August 5, 2004 08:16 AM

Yes, you would still have to use this work around. There has been no change in this behavior. The MinResizeRowSize only affects UI changing of the row heights and not programmatic changing of the row heights.


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.

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.