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.v20.2.dll
Declaration
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>