Joe,
try this code:
private void gridGroupingControl1_RecordExpanded(object sender, RecordEventArgs e)
{
GridChildTable ct = e.Record.NestedTables[0].ChildTable as GridChildTable;
// switch mode for TableModel
ChildTable savedFilteredChildTable = ct.ParentTable.FilteredChildTable;
try
{
ct.ParentTable.FilteredChildTable = ct;
GridTableModel tm = ct.ParentTable.TableModel;
tm.RowHeights.ResizeToFit(GridRangeInfo.Rows(0, tm.RowCount), GridResizeToFitOptions.ResizeCoveredCells);
ct.ParentTable.FilteredChildTable = ct;
}
finally
{
ct.ParentTable.FilteredChildTable = savedFilteredChildTable;
}
}
A sample project is here:
ResizableRowsWithResizeToFit_F31912.zip
Stefan
>I would like to perform RowHeights.ResizeToFit on the child table after the expand on parent table, how would I accomplish that?
>
>Thanks,
>Joe