This example demonstrates how to use two ASPxGridView instances to show the master-detail data. Detail data is displayed in an external ASPxGridView when a master ASPxGridView's focused row index is modified.
MVC Version:
E3891: How to export multiple GridViews into a single print document
See Also:
E2529: How to show the ASPxGridView's detail information in the ASPxDataView
E1285: How to display master-detail tables in two grids on separate tabs of a PageControl
E2193: How to display detail data within a popup window
Question Comments
Added By: Robert Burgan at: 4/1/2015 12:31:34 PM
I copied this code and added it to my grid. When I put a breakpoint at the Protected Sub gvDetail_CustomCallback sub, it does not reach it when I click the select button in the grid.
Added By: Larry (DevExpress Support) at: 4/1/2015 2:02:15 PM Hello,I have provided the answer for this issue in the ASPxGridView - How to show an additional information in second grid when the row is selected in the first one thread. Added By: DSJB at: 7/29/2015 8:56:46 AM
Unless I am missing something the example code appears to have a bug. In the callback handler in the code behind, the first line should use the parameter supplied by the callback as follows:
string categoryId = gvMaster.GetRowValues(Convert.ToInt32(e.Parameters), "CategoryID").ToString();
Added By: Paul (DevExpress Support) at: 7/29/2015 2:00:51 PM Hi,Thank you for the report. It is possible to use both approaches, but our code doesn't require passing the focused row index to the PerformCallback function. We will update the example.