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
245
e.Record.CancelUpdate(); is not working
posted

 e.Record.CancelUpdate(); is not working for  grd_CellUpdated()

Please help me.

Parents
No Data
Reply
  • 69686
    posted

    Hello,

    I am not completely sure,but I believe this is because of IEditableObject interface. CanceUpdate will cancel it if you implement IEditableObject on your underlying class. The DataTable (DataView) implements that interface so that if you use a DataTable, this would be working. I also tried with a custom class which implements IEditableObject, and it is also working.

    You can see a sample implementation by Microsoft in the MSDN here:

    http://msdn.microsoft.com/en-us/library/system.componentmodel.ieditableobject.aspx

    Hope this helps.

Children