Class DetailsViewDefinitions
Represents a class that maintains the relations for hierarchical data.
Inheritance
System.Object
DetailsViewDefinitions
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class DetailsViewDefinitions : ObservableCollection<GridViewDefinition>
Examples
The following example shows how to create Master-Details view relation manually.
// Master-Details view relation define manually by using the SfDataGird.DetailsViewDefinitions collection when the SfDataGrid.AutoGenerateRelations is false.
sfDataGrid.AutoGenerateRelations = false;
// GridViewDefinition for DataGrid
var gridViewDefinition = new GridViewDefinition();
gridViewDefinition.RelationalColumn = "OrderDetails";
gridViewDefinition.DataGrid = new SfDataGrid() { Name = "FirstLevelNestedGrid", AutoGenerateColumns = true };
sfDataGrid.DetailsViewDefinitions.Add(gridViewDefinition);
Constructors
DetailsViewDefinitions()
Declaration
public DetailsViewDefinitions()