Skip to main content
.NET Framework 4.6.2+

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

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