Skip to main content

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.v23.2.dll

NuGet Package: DevExpress.Wpf.PropertyGrid

Declaration

public void 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