Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PropertyGridControl.PostEditor() Method

In This Article

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

Namespace: DevExpress.Xpf.PropertyGrid

Assembly: DevExpress.Xpf.PropertyGrid.v24.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