Silverlight DataPager

In Xaml

<data:DataPager x:Name="DataPagerName" DisplayMode="FirstLastPreviousNextNumeric" HorizontalAlignment="Center" Source="{Binding Path=ItemsSource,ElementName=DataGridname}" PageSize="10"/>


C# code

PagedCollectionView tempListView = new PagedCollectionView(e.Result);
DataGridname.ItemsSource = tempListView;

1 comment:

  1. @Muhammad Azeem : Thank you.This encourages me to write more blog posts.

    ReplyDelete