Essential Grid’s Grid Grouping Control supports hierarchical data sets that can be customized at design time.
Shows how to construct hierarchical data sets at design time
Preview option lets you preview and edit the grid with live data
Exporting and importing the look and feel or schema information of the grid in XML format
Almost all the properties can be set through the designer
This is how the sample looks immediately after execution.
Implementation
Here is the code used to add the group drop area for a related table.
this.gridGroupingControl1.AddGroupDropArea("Orders");
Here is the code to hide the Caption cell and its button for a nested table.
this.gridGroupingControl1.NestedTableGroupOptions.ShowCaptionPlusMinus = false;
this.gridGroupingControl1.NestedTableGroupOptions.ShowCaption = false;
Here is the code to invoke the Property Dialog window and to set its properties.
GroupingGridPropertyDialog frm = new GroupingGridPropertyDialog(this.gridGroupingControl1);
Rectangle r = System.Windows.Forms.SystemInformation.WorkingArea;
frm.Size = new Size(350, 500);
r = Rectangle.FromLTRB(r.Right-frm.Width, r.Top, r.Right, frm.Height);
frm.Bounds = r;
frm.Visible = true;
frm.Bounds = r;