■ EntityInstantFeedbackDataSource 엘리먼트를 사용하는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<Grid xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"> <dx:EntityInstantFeedbackDataSource x:Name="entityInstantFeedbackDataSource" KeyExpression="ProductID" /> <dxg:GridControl x:Name="gridControl" ItemsSource="{Binding ElementName=entityInstantFeedbackDataSource, Path=Data}"> <dxg:GridControl.Columns> ... </dxg:GridControl.Columns> <dxg:GridControl.View> <dxg:TableView x:Name="tableView" RowAnimationKind="Opacity" /> </dxg:GridControl.View> </dxg:GridControl> </Grid> |
▶ 예제 코드 (C#)
1 2 3 |
this.entityInstantFeedbackDataSource.QueryableSource = new NorthwindEntities().Products; |