I have three tables: Customer, Order, Order Details.
I need to get the current row that is selected in a DataGrid when browsing the Order Table.
They are related like so:
Customer --> Order --> Order Details
I can browse and edit the tables with a DataGrid.
Its easy to get the current position when browsing the customer table:
However, If I click on a customer, and then navigate to its related records in the Order Table, and try to get the position:
This does not work.
Does anyone know how? Have I explained my situation clearly?
Thanks,
spoon
I need to get the current row that is selected in a DataGrid when browsing the Order Table.
They are related like so:
Customer --> Order --> Order Details
I can browse and edit the tables with a DataGrid.
Its easy to get the current position when browsing the customer table:
Code:
Dim x as Integer = Me.BindingContext(DsAll1, "Customer").Position
However, If I click on a customer, and then navigate to its related records in the Order Table, and try to get the position:
Code:
Dim OrderTablePosition as Integer = Me.BindingContext(DsAll1, "Order").Position
This does not work.
Does anyone know how? Have I explained my situation clearly?
Thanks,
spoon