<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="C1DataGrid_Demo2010.DemoGrid" d:DataContext="{d:DesignData Source=/DesignData/SampleProducts.xaml}" mc:Ignorable="d" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:local="clr-namespace:C1DataGrid_Demo2010">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="0" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Button x:Name="Refresh" Click="Refresh_Click" />
        <c1:C1DataGrid x:Name="grid" Grid.Row="1" AutoGeneratingColumn="grid_AutoGeneratingColumn" AutoGeneratedColumns="grid_AutoGeneratedColumns" CanUserAddRows="True" ShowGroupingPanel="True" ShowVerticalFreezingSeparator="Left" ColumnHeaderOptionsVisibility="Visible" ItemsSource="{Binding}" RowHeight="70">
            <c1:C1AdvancedFiltersBehavior.AdvancedFiltersBehavior>
                <c1:C1AdvancedFiltersBehavior />
            </c1:C1AdvancedFiltersBehavior.AdvancedFiltersBehavior>
            <local:C1CommitOnLostFocusBehavior.CommitOnLostFocusBehavior>
                <local:C1CommitOnLostFocusBehavior />
            </local:C1CommitOnLostFocusBehavior.CommitOnLostFocusBehavior>
            <c1:C1ValidationBehavior.ValidationBehavior>
                <c1:C1ValidationBehavior />
            </c1:C1ValidationBehavior.ValidationBehavior>
            <c1:C1RowIndexHeaderBehavior.RowIndexHeaderBehavior>
                <c1:C1RowIndexHeaderBehavior InitialIndex="1" />
            </c1:C1RowIndexHeaderBehavior.RowIndexHeaderBehavior>
        </c1:C1DataGrid>
    </Grid>
</UserControl>