G
Guest
VS2003 C#
Hi,
I have a list box showing the 'master' records & a datagrid displaying the
'details' of the master records. These are databound to a dataset.
I'm trying to use the RejectChanges method to remove rows that I've added.
This is done in the catch block of a try catch set, but even after I throw an
error & the code gets directed to ds.rejectChanges, all the rows added to the
two tbls are still shown in the list box/datagrid until I close & reopen the
application.
How can i remove these rows that I've added, from the dataset? Why is
RejectChanges not working? Am i overlooking doing something? This has got me
stumped...
Thanks for any ideas in advance.
Ant
Hi,
I have a list box showing the 'master' records & a datagrid displaying the
'details' of the master records. These are databound to a dataset.
I'm trying to use the RejectChanges method to remove rows that I've added.
This is done in the catch block of a try catch set, but even after I throw an
error & the code gets directed to ds.rejectChanges, all the rows added to the
two tbls are still shown in the list box/datagrid until I close & reopen the
application.
How can i remove these rows that I've added, from the dataset? Why is
RejectChanges not working? Am i overlooking doing something? This has got me
stumped...
Thanks for any ideas in advance.
Ant