The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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 1.5.0.0 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?
ADAdministrator Syncfusion Team August 5, 2004 12:16 PM UTC
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.