Working with GridView for ASP.NET Web Forms > Hierarchical Data Binding |
C1GridView allows you to bind data in a hierarchical grid of summary rows and detail rows using your customized query. Hierarchical relationships are defined manually between multiple tables in C1DetailGridView. It enables you to display the hierarchical data with multilevel, multiple layouts and provide features such as sorting, filtering, grouping and editing.
The image below shows the hierarchical grid with one of its rows expanded.
Source View |
Copy Code
|
---|---|
<cc1:C1GridView runat="server" DataSourceID="SqlDataSource1" DataKeyNames="CustomerID, CompanyName"> |
Source View |
Copy Code
|
---|---|
<Relation> <cc1:MasterDetailRelation MasterDataKeyName="CustomerID" DetailDataKeyName="CustomerID" /> </Relation> |