When using SummaryOperands in a XamGrid with grouped rows, there are summary rows appearing at both the group level and at the bottom of the grid. I need to display only the one summary row at the bottom of the grid but I've been unable to find a way to turn off or hide the group summary rows. Any ideas?
Hi NLPatrick,
I'm putting together a sample to test with and I'd like to ask if you could provide the XAML you use to create your grid. This way I can make sure that my sample will follow your setup correctly.
I'm actually using the grid in a Lightswitch project. I created a usercontrol that contains a XamGrid. Here is the XAML for the usercontrol:
<UserControl x:Class="Tresys.Cascade.Custom.CascadeStaffingGrid" 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:ig="http://schemas.infragistics.com/xaml" xmlns:igPrim="clr-namespace:Infragistics.Controls.Grids.Primitives;assembly=InfragisticsSL4.Controls.Grids.XamGrid.v11.2" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <UserControl.Resources> <igPrim:SummaryResultFormatStringValueConverter x:Key="SDFormatStringConverter" /> <Style x:Key="SummaryRowCellsStyle" TargetType="igPrim:SummaryRowCellControl"> <Setter Property="Background" Value="WhiteSmoke" /> <Setter Property="SummaryDisplayTemplate"> <Setter.Value> <DataTemplate> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> <TextBlock HorizontalAlignment="Right" Text="{Binding Converter={StaticResource SDFormatStringConverter}}" /> </StackPanel> </DataTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="CompositeColumnStyle" TargetType="ig:CellControl"> <Setter Property="BorderThickness" Value="0"/> <Setter Property="Padding" Value="1 0 1 0"/> <Setter Property="HorizontalContentAlignment" Value="Stretch" /> </Style> </UserControl.Resources> <Grid x:Name="LayoutRoot" Background="White"> <ig:XamGrid HorizontalAlignment="Left" Name="xamGrid1" VerticalAlignment="Top"> <ig:XamGrid.SummaryRowSettings> <ig:SummaryRowSettings AllowSummaryRow="Bottom" SummaryScope="ColumnLayout" Style="{StaticResource SummaryRowCellsStyle}" /> </ig:XamGrid.SummaryRowSettings> </ig:XamGrid> </Grid> </UserControl>