|
This might be a simple question,
I have a windows form application with a dataset composed of 2 dataadapters which are connected via a datarelation. The form displays 2 datagrids; one bound to the child table (thus showing all the rows from the child table) the other bound to the relation (thus showing only the rows related to the active parent row).
So, call the tables Parent and Child and the relation ParentChild. Call the grids, gridChild and gridParentChild.
I want to allow the user to "add" and "remove" child rows to / from the parent. I have been able to make this work, but how do I refresh the gridParentChild? That is, once I add the foreign key value to gridChild and the update succeeds, the data shown in gridParentChild is not updated. What is the best way to refresh what the grid is showing? |