I'm trying to create a grid that contains multiple nested master-details views. For example, the main Orders grid has one or more LineItems. Clicking the [+] opens the row to view a grid of LineItems. Each line item contains one or more InventoryItems. Clicking the [+] on the LineItems grid opens the row to view a grid of InventoryItems.
My data is similar to the following (this is only an example):
TOrder:
OrderNumber
OrderDate
LineItems[]
LineItem:
ItemNumber
Price
Inventory[]
Inventory:
Location
QuantityAvailable
The first level works fine. I can open an Order line with no issue and it displays the LineItems grid. However, when I click on the LineItem, I get a "null object" error at InitializeDetailsViewDataGrid.
I have set AutoGenerateRelations on both grids (Orders is set in the designer; LineItems is set in the OrdersGrid.AutoGeneratingRelations event).
I'm do not know what I am missing, or if I'm even going about this the right way. Please help!
Kevin
Attachment:
ObjectGrid_f1d2b996.zip