Home Forums WinForms controls Xceed Grid for WinForms GridControl with Autoheigth Reply To: GridControl with Autoheigth

User (Old forums)
Member
Post count: 23064

This works fine here. How and where do you bind the grid? Does your application run when not subscribing to this event?

Note that you should also loop for the FixedFooterRows and FixedHeaderRows so that all rows are taken into account to calculate the height of the grid.

Xceed.Grid.Collections.RowList list = gridControl1.FixedFooterRows;
foreach( Xceed.Grid.Row row in list )
{
Heath += row.Height;
}
list = gridControl1.FixedHeaderRows;
foreach( Xceed.Grid.Row row in list )
{
Heath += row.Height;
}

Imported from legacy forums. Posted by André (had 3236 views)