Skip to main content
.NET Framework 4.6.2+

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

NuGet Package: DevExpress.ExpressApp

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;
    }
}
See Also