RadGrid for ASP.NET

Binding the grid Send comments on this topic.
See Also
Functional overview > Binding the grid

Glossary Item Box

There are two general steps to implement in order to bind hierarchical (or flat) grid.

  1. Design the grid structure

    The first step when creating hierarchical grids is to specify the structure of the hierarchical tables. This step must be completed before binding the data.

    This is related to populating the collection of DetailTables of RadGrid.MasterTableView and the respective columns. It is important that this step be completed before RadGrid is bound to any data.

  2. Bind the detail tables

    At runtime, when binding the data, RadGrid builds the structure of items (grid rows), with respect to the structure of the detail tables as defined in Step 1. RadGrid will create a new control GridTableView for each item in the master table. Then RadGrid will assign it as a child of the master item. This control will be a copy of the corresponding table - this should be DetailTable(0).

     

See Also