<Window x:Class="WPF.GrouedEdit.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
		xmlns:sys="clr-namespace:System;assembly=mscorlib"
    Title="Window1" Height="300" Width="300">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="20"></RowDefinition>
			<RowDefinition></RowDefinition>
		</Grid.RowDefinitions>
		<Button Content="Group by Name" Click="Button_Click"></Button>
		<telerik:RadGridView Grid.Row="1" x:Name="SampleGrid" AutoGenerateColumns="False" ShowInsertRow="True" CanUserInsertRows="True">
			<telerik:RadGridView.Columns>
				<telerik:GridViewDataColumn DataMemberBinding="{Binding KBytes}" >
					<telerik:GridViewDataColumn.AggregateFunctions>
						<!--<telerik:FirstFunction Caption="First: "  />
						<telerik:CountFunction Caption="Count: "  />-->
						<telerik:SumFunction SourceField="KBytes" SourceFieldType="{x:Type sys:Decimal}"></telerik:SumFunction>
					</telerik:GridViewDataColumn.AggregateFunctions>
				</telerik:GridViewDataColumn>
				<telerik:GridViewDataColumn DataMemberBinding="{Binding Date}"/>
				<telerik:GridViewDataColumn DataMemberBinding="{Binding Picture Name}"/>
				<telerik:GridViewDataColumn DataMemberBinding="{Binding BMP}"/>
			</telerik:RadGridView.Columns>


		</telerik:RadGridView>
	</Grid>
</Window>
