Skip to main content
A newer version of this page is available. .

EntityInstantFeedbackDataSource Class

A non-visual component that can be used as a data source for the GridControl in Instant Feedback UI Mode. Can be associated with an Entity Framework queryable source.

Namespace: DevExpress.Xpf.Core.ServerMode

Assembly: DevExpress.Xpf.Core.v18.2.dll

Declaration

public class EntityInstantFeedbackDataSource :
    InstantFeedbackDataSourceBase

Remarks

The EntityInstantFeedbackDataSource is a non-visual component that is available via the Items Source Wizard. It implements the same functionality introduced by EntityInstantFeedbackSource

Note

The EntityInstantFeedbackDataSource is a read-only data source.

Example

This example shows how to implement the Instant Feedback UI Mode (asynchronous data loading) for the grid bound to the Entity Framework 4.0 Classes. To activate this feature, our specially designed data source (LinqInstantFeedbackSource) is used.

<Window x:Class="dxSample_InstanceFeedbackMode.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525"
        xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
        xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
        dx:ThemeManager.ThemeName="Office2007Black">
    <Grid>
        <dx:EntityInstantFeedbackDataSource Name="entitySource" KeyExpression="ProductID" />
        <dxg:GridControl Name="grid" ItemsSource="{Binding ElementName=entitySource, Path=Data}">
            <dxg:GridControl.Columns>
                <dxg:GridColumn FieldName="ProductName"/>
                <dxg:GridColumn FieldName="UnitPrice">
                    <dxg:GridColumn.EditSettings>
                        <dxe:SpinEditSettings MaskType="Numeric" Mask="c2"
                                              MaskUseAsDisplayFormat="True" />
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
                <dxg:GridColumn FieldName="UnitsInStock"/>
                <dxg:GridColumn FieldName="UnitsOnOrder"/>
                <dxg:GridColumn FieldName="ReorderLevel"/>
                <dxg:GridColumn FieldName="Discontinued"/>
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:TableView Name="tableView1" AutoWidth="True"
                               RowAnimationKind="Opacity" />
            </dxg:GridControl.View>
        </dxg:GridControl>
    </Grid>
</Window>

The following code snippets (auto-collected from DevExpress Examples) contain references to the EntityInstantFeedbackDataSource class.

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.

Inheritance

Show 13 items
Object
DispatcherObject
DependencyObject
Visual
UIElement
FrameworkElement
Control
DevExpress.Xpf.Core.DXDesignTimeControl
DevExpress.Xpf.Core.DataSources.SimpleDataSourceBase
DevExpress.Xpf.Core.DataSources.DataSourceBase
DevExpress.Xpf.Core.DataSources.ListSourceDataSourceBase
InstantFeedbackDataSourceBase
EntityInstantFeedbackDataSource
See Also