Row Summaries

Set the ShowRowSummaries to true to show  row summaries. And to add any pre populated row summaries update SummaryColumnSettings for the Extended Column.

    

XAML

<ExtendedGridControl:ExtendedDataGrid ShowRowSummaries="True" Height="500" VerticalAlignment="Top" x:Name="grid" ItemsSource="{Binding SourceTable}" RowHeaderWidth="17"  AutoGenerateColumns="False" HideColumnChooser="False" 
                                              IsSynchronizedWithCurrentItem="True"  SelectionMode="Extended" SelectionUnit="CellOrRowHeader" >
            
            <WpfToolkit:DataGrid.Columns>
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Game Name" AllowAutoFilter="False"
                                           Binding="{Binding GameName}" />
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Creator" AllowAutoFilter="False"
                                           Binding="{Binding Creator}" />
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Owner"
                                           Binding="{Binding Owner}" AllowAutoFilter="False"/>
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Publisher"
                                           Binding="{Binding Publisher}" AllowAutoFilter="False"
                                           CanUserSort="False" Width="*"/>
                    <ExtendedColumn:ExtendedDataGridTextColumn Header="Count"
                                           Binding="{Binding Count}" AllowAutoFilter="False"
                                           CanUserSort="False" Width="*">
                        <ExtendedColumn:ExtendedDataGridTextColumn.SummaryColumnSettings>
                            <Classes:SummaryColumnSettings>
                                <Classes:SummaryColumnSettings.SummaryOperands>
                                    <Classes:SumSummaryOperands/>
                                    <Classes:CountSummaryOperands/>
                                </Classes:SummaryColumnSettings.SummaryOperands>
                            </Classes:SummaryColumnSettings>
                        </ExtendedColumn:ExtendedDataGridTextColumn.SummaryColumnSettings>
                    </ExtendedColumn:ExtendedDataGridTextColumn>

 

To edit the formatting of computational columns set following properties.

RowSummaryCountFormat
RowSummarySumFormat
RowSummaryAverageFormat
RowSummaryMinFormat
RowSummaryMaxFormat
RowSummarySmallestFormat
RowSummaryLargestFormat

 

For e.g

<ExtendedGridControl:ExtendedDataGrid ShowRowSummaries="True" Height="500" VerticalAlignment="Top" x:Name="grid" ItemsSource="{Binding SourceTable}" RowHeaderWidth="17" AutoGenerateColumns="False" HideColumnChooser="False"
IsSynchronizedWithCurrentItem="True" SelectionMode="Extended" SelectionUnit="CellOrRowHeader" RowSummarySumFormat="[#]">

 

 

Last edited Oct 17, 2013 at 9:05 PM by bpoojary, version 4

Comments

No comments yet.