Synchronizing dataadapters and bindingsource
-
I have a simple problem and find it hard to believe there isn't an article or documentation around on how to solve it. Probably just looking in the wrong place. Anyway I have a form with a grid bound to a table in the dataset. There are several other tables in the dataset which provide detail info for the parent record. My main form has a grid and a tab control. When the user selects a tab a control bound to the original form is added with the detail info from the appropriate table. No problem so far. I just pass the dataset and filter in the new routine of the control. Now when I change recors in the master grid I would like the detail in the loaded control to be synchronized. Anyone have a simple example of this or know an easy to understand article on maintaining concurrency between a form and a loaded control?
Such a Larry
-
I have a simple problem and find it hard to believe there isn't an article or documentation around on how to solve it. Probably just looking in the wrong place. Anyway I have a form with a grid bound to a table in the dataset. There are several other tables in the dataset which provide detail info for the parent record. My main form has a grid and a tab control. When the user selects a tab a control bound to the original form is added with the detail info from the appropriate table. No problem so far. I just pass the dataset and filter in the new routine of the control. Now when I change recors in the master grid I would like the detail in the loaded control to be synchronized. Anyone have a simple example of this or know an easy to understand article on maintaining concurrency between a form and a loaded control?
Such a Larry
larry118 wrote:
Now when I change recors in the master grid I would like the detail in the loaded control to be synchronized.
Based on what you've said about your detail grid, I would think all you had to do was update the filter with the new parameters.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008