Hi,
I tried this solution with a slight modification to recurse. if I uncomment the commented line in the method below, then when i run the sample and click a top level button to expand it on an item such as "Revenues", then nothing happens. If i leave the line commented, then the first nested tables column resizes well, but the child tables under that one do not.
ResizeColumns(grid.TableDescriptor);
public void ResizeColumns(GridTableDescriptor td)
{
//td.AllowCalculateMaxColumnWidth = false;
GridTableModel tm = grid.GetTableModel(td.Name);
tm.Table.FilteredChildTable = null;
tm.ColWidths.ResizeToFit(GridRangeInfo.Table(), GridResizeToFitOptions.ResizeCoveredCells);
foreach (GridRelationDescriptor relation in td.Relations)
{
ResizeColumns(relation.ChildTableDescriptor);
}
}
snippit of data i am working with:
http://screensnapr.com/u/i/din6w4.png