TreeViewControl.CloseEditor() Method
Closes the active in-place editor and saves pending changes.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.dll
Declaration
Remarks
The CloseEditor method validates the new value before the TreeViewControl posts the value to the data source. If the value is valid, the method posts it and closes the editor. If the value is invalid, the editor remains open until a user inputs a valid value.
To discard pending changes and close the editor, call the HideEditor() method. To save the modified value without closing the editor, call the PostEditor() method instead.
Example: Close the Active Editor
treeViewControl.ShowEditor();
if (treeViewControl.ActiveEditor != null)
treeViewControl.ActiveEditor.EditValue = "Updated Value";
treeViewControl.CloseEditor();
See Also