TreeViewControl.HideEditor() Method
Closes an active editor and discards pending changes.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.dll
Declaration
Remarks
Call the HideEditor method to cancel the current edit operation (close the active in-place editor without posting pending changes to the data source). To close the editor and apply/post pending changes, call CloseEditor() instead.
Example: Discard Pending Changes and Close the Active Editor
The following code snippet activates an editor, modifies the node value, and closes the editor without posting the change:
treeViewControl.ShowEditor();
if (treeViewControl.ActiveEditor != null)
treeViewControl.ActiveEditor.EditValue = "Pending Value";
treeViewControl.HideEditor();
See Also