Skip to main content

TreeList.CancelCurrentEdit() Method

Cancels changes made to focused node cells.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.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