<UserControl x:Class="DataGridSamples.Selection"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
      xmlns:helpers="clr-namespace:Helpers"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DataContext="{d:DesignData Source=/DesignData/SampleProducts.xaml}"
      d:DesignHeight="300" d:DesignWidth="300">

    <c1:C1DataGrid 
            x:Name="grid" 
            CanUserFreezeColumns="None"
            IsReadOnly="True"
            AutoGenerateColumns="True" 
            RowHeight="25" 
            AlternatingRowBackground="White"
            GridLinesVisibility="All"
            SelectionMode="MultiRange"
            ColumnHeaderClickAction="Select"
            Grid.Row="1"
            ItemsSource="{Binding}">
        <c1:C1RowIndexHeaderBehavior.RowIndexHeaderBehavior>
            <c1:C1RowIndexHeaderBehavior InitialIndex="1"/>
        </c1:C1RowIndexHeaderBehavior.RowIndexHeaderBehavior>
    </c1:C1DataGrid>
</UserControl>
