Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2211
cancel updaterowbatch if cancel button is pushed?
posted

Hello all,

I am trying to use update row batch to update the database when the save button is pushed.  The problem is that I also have a Cancel button.  Both buttons just trigger postbacks.  UpdateRowBatch fires regardless of what control initiated the post back and it fires before the click event of the buttons.  My question is, how can I stop the post back or prevent the update from taking place if the cancel button is pushed? 

TIA,

Patrick

Update:

I forgot to mention that I am using dynamically created datasets to populate the datagrid using Initialize_datasource.