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
40
RowEditTemplate - Cancel update
posted

Hello All,

I am using the UltraGrid control along with the RowEditTemplate, I am populating the grid with data using the EntityFramework, everything seemed to be working just fine. The issue I am having is that when the row edit template is displayed and the user decides to click cancel, the changes are still committed to the datasource.

 

 

'This code was automatically generated by the RowEditTemplate Wizard
'Close the template and discard any pending changes.

 

 

 

Me.UltraGridRowEditTemplate1.Close(False)

 

I have tried to trap the before and after row update events to see if they fire on .Close(False) and they don't they only fire on .Close(True) of the RowEditTemplate.

It looks that the 'commitChanges' is working when the changes needs to be committed to the row, but it will not when trying to discard these changes.  

I am using the standard System BindingSrouce and the BindingNavigator (VS2008)