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
355
Reset the AddRowTemplate after cancel update
posted

Hi,

 

I'm using a grid with AllowAddNew set to  AllowAddNew.FixedAddRowOnTop and in BeforeRowUpdate I make some validation to decide if changes will be updated in the data source or not. When validation failed I set e.Cancel to true to cancel update, this work fine but the row (that is the add row template) become a non add row template that means  that IsAddRow property return false, even after pressing ESC the row still non add row template and this is a problem for me because I'm setting some row properties based on this propertie.

How can I reset the add row template?

 

Best regards.