<Page
    x:Class="FlexGrid101.Grouping"
    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"
    mc:Ignorable="d"
    xmlns:c1="using:C1.Xaml.FlexGrid"    
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <Grid>
        <c1:C1FlexGrid x:Name="grid" AutoGenerateColumns="False" ShowOutlineBar="True" GridLinesVisibility="Vertical" IsReadOnly="True">
            <c1:C1FlexGrid.Columns>
                <c1:Column Binding="{Binding Active}" Width="Auto"/>
                <c1:Column Binding="{Binding Name}" Width="*"/>
                <c1:Column Binding="{Binding OrderTotal}" Width="Auto" Format="C" GroupAggregate="Sum" />
            </c1:C1FlexGrid.Columns>
        </c1:C1FlexGrid>
    </Grid>
</Page>
