<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="C1DataGrid_Demo2010.GrandTotal" 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:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:local="clr-namespace:C1DataGrid_Demo2010" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <UserControl.Resources>
        <local:Models x:Name="Models" />
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <c1:C1DataGrid x:Name="grid" CanUserGroup="True" CanUserAddRows="False" AutoGenerateColumns="True" AutoGeneratingColumn="grid_AutoGeneratingColumn" FrozenBottomRowsCount="1" Grid.Row="2" ItemsSource="{Binding}">
            <c1:C1DataGrid.BottomRows>
                <c1:DataGridSummaryRow />
            </c1:C1DataGrid.BottomRows>
        </c1:C1DataGrid>
    </Grid>
</UserControl>