Back to Devexpress

DataViewBase.CloseEditor() Method

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-54261da5.md

latest1.5 KB
Original Source

DataViewBase.CloseEditor() Method

Hides the active editor, saving the changes made.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public void CloseEditor()
vb
Public Sub CloseEditor

Remarks

Before the active editor’s new value is posted to a data source, it is validated. If a new value is valid, it is posted to a data source and the editor can be closed. Otherwise, if a new value is invalid, the active editor cannot be closed, and cell focus cannot be moved to another cell until its value is corrected.

After the editor has been hidden, the GridViewBase.HiddenEditor event is raised.

See Also

Edit Cell Values in UI

HideEditor()

PostEditor()

CommitEditing

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace