Capturing row change event using Datagrids in VB.NET
I am getting stumped here. Silly me, I figured Microsoft would have created a simple event for when a row is selected in a datagrid.
Here is where I am stuck:
I have 2 grids (GRID A and GRID B) on the same form. GRID A is bound to a table in a dataset. GRID B is bound to a dataview derrived from a different table in the same dataset.
Selecting a row in GRID A changes the filter on the dataview which changes the contents of GRID B accoringly. This works fine. I get the bindingcontext of the appropriate table that GRID A is bound to and add a handler for the PossitionChanged event. No problems.
The idea now is that when a row is selected from GRID B, various data entry controls will be updated. I tried using the same bindingcontext methiod for this but it doesn't seem to be working. It must have something to do with the fact that I am bound to a dataview and not teh table itself. How can I capture the row change on GRID B so I can correctly update my controls?
I'm setting the points for this pretty high as I need help as soon as possible.