Home Forums WinForms controls Xceed Grid for WinForms master-detail grids filtering Reply To: master-detail grids filtering

User (Old forums)
Member
Post count: 23064

Yes, this is possible. You need to bind the grid to the DefaultView instead of the DataTable. Your binding would look like this :

gridControl.BeginInit();

gridControl.SetDataBindings( dataSet.Tables[ 0 ].DefaultView, string.empty );

DetailGrid detailGridTemplate = new DetailGrid();
detailGridTemplate.SetDataBindings( dataSet.Tables[ 0 ].DefaultView, “RelationName” );

gridControl.DetailGridTemplates.Add( detailGridTemplate );

gridControl.UpdateDetailGrids();

gridControl.EndInit();

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