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
350
WinGrid is not Canceling Update from RowEditTemplate_CancelButton...HELP!
posted

HI,

 Well, i have a RowEditTemplate for my WinGrid, if i make some changes to any proxycell when i press Cancel Button it doesn't cancel the update, because when the Template is closed the row is updated with the changes.

 And this is the implementation for the CancelButtonClick event:

private void btnTemplateCancel_Click_1(object sender, EventArgs e)

{

// This code was automatically generated by the RowEditTemplate Wizard

//

// Close the template and discard any pending changes.

this.ugetEditClient.Close(false);

}

 

Do i have to do something else? i used the example v8.2 RowEditTemplates like a guide.

 Plz Help!

Parents
No Data
Reply
  • 37774
    posted

    What kind of DataSource do you have bound to the grid?  If the underlying object doesn't implement IEditableObject, there is no way that the grid can know to cancel the edit and revert to the previous values.

    -Matt

Children