Hi,
I've got a question on how best to accomplish drill down on a grid. The basic user experience should be to load up the form with a grid, and then click on any row's down arrow and see the grid expand to view related records (heirarchical grid).
I've currently got it working by creating 2 lists and setting up the relationship between them. What I'm wondering is if it's possible to set it up so that I can call the child object in the datasource to be the sub grid.
eg
Order has a property called 'OrderItems' which contains a list of all order items. In order to display on a grid, I need to call seperately a 'GetOrders' and a 'GetOrderItems', and then put the two together.
How would I get the grid to use Order.OrderItems as a data source instead? I suspect it would have to be an unbound grid, which is OK, but then I just need to know how to create a hierarchical unbound grid! Potentially it'd be nice to automatically generate a sub grid based on the properties of a sub object.
I've got a question on how best to accomplish drill down on a grid. The basic user experience should be to load up the form with a grid, and then click on any row's down arrow and see the grid expand to view related records (heirarchical grid).
I've currently got it working by creating 2 lists and setting up the relationship between them. What I'm wondering is if it's possible to set it up so that I can call the child object in the datasource to be the sub grid.
eg
Order has a property called 'OrderItems' which contains a list of all order items. In order to display on a grid, I need to call seperately a 'GetOrders' and a 'GetOrderItems', and then put the two together.
How would I get the grid to use Order.OrderItems as a data source instead? I suspect it would have to be an unbound grid, which is OK, but then I just need to know how to create a hierarchical unbound grid! Potentially it'd be nice to automatically generate a sub grid based on the properties of a sub object.