TreeViewControl.PostEditor() Method
Saves the active editor value to a data source without closing the editor.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v26.1.dll
Declaration
Remarks
Before the active editor’s new value is posted to a data source, the TreeViewControl validates that value. If the new value is valid, the control posts the value to the data source and the editor remains open. If the new value is invalid, the control does not post the value to the data source, and the editor remains open until a valid value is specified.
Use CloseEditor() to post the value and close the editor. If you need to close the editor without posting pending changes, call HideEditor() instead.
Example: Post the Active Editor Value
The following code snippet posts the active editor value to the underlying data source:
treeViewControl.ShowEditor();
if (treeViewControl.ActiveEditor != null)
treeViewControl.PostEditor();