Back to Devexpress

TableView.HideEditor() Method

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-9ab81afd.md

latest2.4 KB
Original Source

TableView.HideEditor() Method

Closes the active editor and discards all changes.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public override void HideEditor()
vb
Public Overrides Sub HideEditor

Remarks

To close the active editor and save changes, use the CloseEditor() method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HideEditor() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-implement-cell-editing-confirmation/CS/GridControlCellEditingConfirmationExample/EditCellConfirmationBehavior.cs#L17

csharp
MessageBoxResult.No) {
    AssociatedObject.HideEditor();
}

wpf-data-grid-implement-cell-editing-confirmation/VB/GridControlCellEditingConfirmationExample/EditCellConfirmationBehavior.vb#L17

vb
If Equals(e.Column.FieldName, NameOf(Item.Growth)) AndAlso MessageBox.Show("Do you wish to update the value?", "Confirmation", MessageBoxButton.YesNo) = MessageBoxResult.No Then
    AssociatedObject.HideEditor()
End If

See Also

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace