.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

PropertyEditor.ImmediatePostData Property

Specifies whether the property editor’s control value should be passed to the property of a bound object as soon as possible when the value is changed by user. For instance, it allows you to enforce updating other displayed values that are calculated based on the current property.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v21.2.dll

Declaration

public bool ImmediatePostData { get; set; }

Property Value

Type Description
Boolean

true if the property editor’s control value should be passed as soon as possible; otherwise, false.

Remarks

This property derives its default value from Views | <DetailView> | Items | <PropertyEditor> | ImmediatePostData and Views | <ListView> | Columns | <Column> | ImmediatePostData.

Refer to the ImmediatePostDataAttribute topic for details.

The example below demonstrates how to apply ImmediatePostData to FirstName and LastName. This causes the calculated FullName field to update automatically in WinForms applications.

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Win.Editors;
// ...
public class FullNameController : ObjectViewController<DetailView, MainDemo.Module.BusinessObjects.Contact> {
    protected override void OnActivated() {
        StringPropertyEditor firstNameEditor = (StringPropertyEditor)View.FindItem("FirstName");
        StringPropertyEditor lastNameEditor = (StringPropertyEditor)View.FindItem("LastName");
        firstNameEditor.ImmediatePostData = true;
        lastNameEditor.ImmediatePostData = true;
    }
}

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

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.

See Also