|
Numerous DataSource Options
The Grid Grouping Control offers extremely flexible data binding options. It provides built-in support for numerous datasources which are given below.
-
DataTable
-
DataSet
-
DataView
-
XML Data
-
Custom collection that implements the interfaces like IList, ITypedList, IBindingList, etc.
Binding to ADO.NET DataSet
The GridGroupingControl can be bound to any ADO.Net dataset with its flexible data binding properties. Assigning the required dataset to the GridGroupingControl's DataSource property will bind the grid to the data source. The grid will automatically extract the field information from the bound columns and also any relationship between multiple tables in the data source to render hierarchical data.
Setting up ADO.Net Data
Grid bound to an ADO.Net Dataset
Binding to XML data
The Grouping Grid provides support for XML datasources. It can be bound to such datasources right in the design time.
Setting up XML DataSource
XML Grid
Binding to an ArrayList
Grouping Grid can be bound to any collection that derives from IList. ArrayList, for example, implements the IList interface. Once an array list is created and is populated with a list of items, it can be bound to the datgrid by using the DataSource property. The Grid will use reflection to know the public properties exposed by the items and determine the columns that are to be rendered.
Building an ArrayList and binding it to the Grid
|
|
|
|