|
|
|
The ASPxGridView supports master-detail data presentation of any complexity.
This demo shows how to create a simple master-detail relationship between two tables. All you have to do is to: -
Create two ASPxGridView controls
-
Bind the first grid (master grid) to the master data source and enable its SettingsDetail.ShowDetailRow option.
-
Bind the second grid (detail grid) to the detail data source and enable its SettingsDetail.IsDetailGrid option.
-
Create the DatailRow template for the master grid and place the detail grid onto it.
-
Finally handle the detail grid's BeforePerformDataSelect event and specify session values.
By default, end-users can expand several master rows simultaneously. This behavior is controlled by the SettingsDetail.AllowOnlyOneMasterRowExpanded option. In this demo, this option is enabled via the Keep a single expanded row at a time box. Once enabled, only one detail row can be displayed at a time.
|
 | Loading… |
|
|
|
|
|
|
|
|