Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.CancelCurrentEdit() Method

In This Article

Cancels changes made to focused node cells.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public virtual void CancelCurrentEdit()

#Remarks

Call the CancelCurrentEdit method to discard changes made to the contents of cells within a focused node. Note that this method is in effect until the node loses focus and if no cell is being edited at present time. To discard the changes made to the currently edited cell and close the editor, call the TreeList.HideEditor method instead.

If it is necessary to save changes made to the focused node, call the TreeList.EndCurrentEdit method. After this method has been called, calling the CancelCurrentEdit method has no effect.

End-users can also cancel focused node updates. The ESC key needs to be pressed to do this.

See Also