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

XPObjectSpace.InstantFeedbackMappingMode Property

Specifies what properties should be mapped on a grid in the InstantFeedback or InstantFeedbackView mode.

Namespace: DevExpress.ExpressApp.Xpo

Assembly: DevExpress.ExpressApp.Xpo.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Xpo

#Declaration

public XPInstantFeedbackSourceMappingMode InstantFeedbackMappingMode { get; set; }

#Property Value

Type Description
XPInstantFeedbackSourceMappingMode

The XPInstantFeedbackSourceMappingMode enumeration value that specifies a properties mapping mode in the InstantFeedback or InstantFeedbackView mode.

Available values:

Name Description
AllProperties

All properties should be mapped on a grid.

RequiredProperties

Only visible properties should be mapped on a grid.

#Remarks

By default, in the InstantFeedback and InstantFeedbackView modes, all properties values are calculated at once regardless of grid columns settings. If you need to calculate only visible columns values, set the InstantFeedbackMappingMode property to XPInstantFeedbackSourceMappingMode.RequiredProperties as demonstrated below:

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Xpo;
//...
public class MyController : WindowController {
    public MyController() {
        this.TargetWindowType = WindowType.Main;
    }
    protected override void OnActivated() {
        base.OnActivated();
        Application.ListViewCreating += Application_ListViewCreating;
    }
    private void Application_ListViewCreating(object sender, ListViewCreatingEventArgs e) {
        if((e.CollectionSource.DataAccessMode == CollectionSourceDataAccessMode.InstantFeedback) && 
          (e.ObjectSpace is DevExpress.ExpressApp.Xpo.XPObjectSpace) && (e.ViewID == "Customer_ListView")) {
            ((XPObjectSpace)e.ObjectSpace).InstantFeedbackMappingMode =
XPInstantFeedbackSourceMappingMode.RequiredProperties;
        }
    }
    protected override void OnDeactivated() {
        Application.ListViewCreating -= Application_ListViewCreating;
        base.OnDeactivated();
    }
}

To map other columns which are not visible in the grid, add them to a collection of displayed options as described in the CollectionSourceBase.DisplayableProperties topic.

If you want to specify what properties should be mapped on a grid for all Object Spaces, use the XPObjectSpaceProvider.InstantFeedbackMappingMode property of an Object Space Provider.

See Also