J
Jan
Hi,
I have two datagrids on a form. Datagrid 1 shows 'customers'. Datagrid 2
shows the 'orders' belonging to 'customers'.
When I select a customer in Datagrid 1, I should automatically get all
orders related to this customer in Datagrid 2. (=standard Master-Slave)
But I would also like to have the possibility to start with the selection of
an order in Datagrid 2 and to automatically get the related Customer
selected in datagrid 1. This means I need the complete list of orders to be
available in datagrid 2.
Questions
========
1. One possibility is to add a 'dummy customer' to datagrid 1 called
"Display ALL orders". Any other approaches ? Suggestions ?
2. What is the most efficient way to implement this ? I guess using the
standard master-slave solution : "2 grids bound to the datatables and a
datarelation between the two datatables" is not possible due to the "ALL
orders" entry in datagrid 1. Any suggestions would be appreciated.
Thanks,
Jan
I have two datagrids on a form. Datagrid 1 shows 'customers'. Datagrid 2
shows the 'orders' belonging to 'customers'.
When I select a customer in Datagrid 1, I should automatically get all
orders related to this customer in Datagrid 2. (=standard Master-Slave)
But I would also like to have the possibility to start with the selection of
an order in Datagrid 2 and to automatically get the related Customer
selected in datagrid 1. This means I need the complete list of orders to be
available in datagrid 2.
Questions
========
1. One possibility is to add a 'dummy customer' to datagrid 1 called
"Display ALL orders". Any other approaches ? Suggestions ?
2. What is the most efficient way to implement this ? I guess using the
standard master-slave solution : "2 grids bound to the datatables and a
datarelation between the two datatables" is not possible due to the "ALL
orders" entry in datagrid 1. Any suggestions would be appreciated.
Thanks,
Jan