Silverlight Datagrid plus adds basic features to the Silverlight toolkit datagrid such as grouping, filtering, new record and formatting of the datagrid.

Developed in version 5 Instead of amending the standard datagrid, all the extra features are added by using a datapager control. (Silverlight version 4 also included in download).

It was developed as a result of a project which required many datagrids, instead of adding features such as grouping to each one in code, a datapager was used which could apply to any datagrid used.

You are free to try and use this control, but remember it was never designed as a commercial project – it is just something I use which could be of use to others.

 

Installation:

1 - Download the binary code and add a reference in your Silverlight client project to the file MyDataPager.dll

2 – In your xmal page add a reference to this file i.e.

xmlns:MyDataPager="clr-namespace:MyDataPager;assembly=MyDataPager"

3 – In your xmal page below your datagrid add the following:

<MyDataPager:xDataPager />

The following is an example of a user control page:

<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    xmlns:MyDataPager="clr-namespace:MyDataPager;assembly=MyDataPager"
    x:Class="SilverlightApplication10.MainPage"
    Width="640" Height="480">

    <Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource SampleDataSource}}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <sdk:DataGrid  AutoGenerateColumns="True" ItemsSource="{Binding Collection}" Grid.Row="0"/>
            
        <MyDataPager:xDataPager Grid.Row="1" />

    </Grid>
</UserControl>