Quantcast
Viewing all articles
Browse latest Browse all 18858

Cancel Datagrid AddRow

The DataGrid is tied to a DataView of a DataSet.  If the user starts to add a row and then exits the window they can leave behind a row with a duplicate key or null key.  This leaves a transaction in progress.  When they try and open the window again there is an exception:

       'DeferRefresh' is not allowed durning an AddNew or EditItem transaction.

Two choices:

1.  How can I cancel the transaction on closing the window if something is invalid?

2.  How can I cancel a pending transaction on opening the window? I have been able to trap this error.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>