Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SilverLight like Datagrid Paging in WPF?

Currently I am searching for the best way for paginating the records in WPF datagrid. I have found one best article which provide best way for paginating records in Silverlight over here.

See it provides also a fabulous demo.

Here is one screen shot. SilverLight DataGrid Paging

But when I have trying it to implement it in WPF I could not implement it? I could not found PagedCollectionView class and also could not found the alternative XAML code of the Silverlight code shows is below screen shot. enter image description here

Could any one provide or suggest the best way for paginating the records in WPF as like Silverlight?

like image 381
Aryan SuryaWansi Avatar asked Nov 05 '22 18:11

Aryan SuryaWansi


1 Answers

You can grab the PagedCollectionView source code from here and compile it into your WPF project. I've done this for a WPF project in the past and it works just fine. However, you won't have the supporting types like DataPager, but it's easy enough just to write your own or throw some buttons on your view that page through the collection.

like image 189
Kent Boogaart Avatar answered Nov 09 '22 15:11

Kent Boogaart