Back to Devexpress

PropertyGridControl.PostEditor() Method

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertygridcontrol-51e8ed54.md

latest1.6 KB
Original Source

PropertyGridControl.PostEditor() Method

Saves the active editor’s value to a data source without closing the editor.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public void PostEditor()
vb
Public Sub PostEditor

Remarks

The PostEditor method makes the property grid validate the newly entered data. If a new value is valid, it will be posted to a data source.

If a new value is invalid, the value will not be posted to a data source, and the editor will not be closed until its value is corrected.

You can use the PropertyGrid’s PropertyGridControl.AllowCommitOnValidationAttributeError property to allow an invalid value to be posted to a data source and the cell focus to be moved to another cell.

See Also

CloseEditor()

PropertyGridControl Class

PropertyGridControl Members

DevExpress.Xpf.PropertyGrid Namespace