
In the August 2003 installment of Cutting Edge, I discussed how to extend the ASP.NET DataGrid server control to use a multi-table data container such as a DataSet object as its data source. If the DataSet contains pairs of interrelated tables, the control adds a dynamically created button column whenever the displayed table is the parent of one of these relations. When the column button is clicked, a child DataGrid is displayed, listing the child rows of the selected record according to the relation. The overall behavior is illustrated in Figure 1 and is similar to how the Windows® Forms DataGrid control works in similar situations.
|