This example demonstrates how to use ASPxGridView and ASPxDataView controls to show master-detail data. When a user selects a row in the master Grid View, the DataView control displays detail data.
Once a user changes the focused row in the grid, the FocusedRowChanged event occurs. The FocusedRowChanged event handler calls the data view's PerformCallback method to send a callback to the server.
On the server, the PerformCallback method raises the CustomCallback event. The CustomCallback event handler establishes a master-detail relationship through the CategoryID
field and updates the detail grid's data.
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)