Home Forums WinForms controls Xceed Grid for WinForms Extending rows in both master and detail grid to fit the space provided Reply To: Extending rows in both master and detail grid to fit the space provided

User (Old forums)
Member
Post count: 23064

When you populate the detail grids, you have access to the actual instance of the grid, not the template.  You should be able to get the column and set its width.  Moreover, if your detail grids are synchronize (GridControl.SynchronizeDetailGrids = true), then you only need to do it once.

e.g. :

void gridControl1_InitializingDetailGrid( object sender, InitializingDetailGridEventArgs e )

{

    e.Grid.AddingDataRow +=

new AddingDataRowEventHandler( Grid_AddingDataRow );

    e.Grid.Columns[

“DummyColumn” ].Width = width;

}

 

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