<Window x:Class="TutorialsWPF.LargeDataset"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="LargeDataset" Height="430" Width="609" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:my="clr-namespace:TutorialsWPF">
    <Grid>
        <c1:C1DataSource Name="c1DataSource1" ContextType="my:NORTHWNDEntities">
            <!-- An EntityViewSource of Order Details in Virtual Mode. -->
            <c1:EntityViewSource EntitySetName="Order_Details" PageSize="50" VirtualMode="Managed"/>
        </c1:C1DataSource>
        
        <c1:C1FlexGrid AutoGenerateColumns="True" Margin="10" Name="dataGrid1" ItemsSource="{Binding ElementName=c1DataSource1, Path=Order_Details}" >
            <!-- A control handler that manages virtual mode in this C1FlexGrid. -->
            <c1:C1DataSource.ControlHandler>
                <c1:ControlHandler VirtualMode="True" />
            </c1:C1DataSource.ControlHandler>
        </c1:C1FlexGrid>
    </Grid>
</Window>
