Silverlight, like Datagrid Paging in WPF?

I'm currently looking for a better way to paginate records in a WPat datagrid . I found one best article that provides a better way to paginate posts in Silverlight above here .

See also provides an awesome demo .

Here is one screenshot . SilverLight DataGrid Paging

But when I try to implement it in WPF , I could not implement it? I could not find the PagedCollectionView class, and I could not find the alternative Silverlight XAML code , which is shown below the screen . enter image description here

Can anyone provide or suggest a better way to paginate posts in WPF like Silverlight?

+4
source share
2 answers

You can take the PagedCollectionView source code here and compile it into your WPF project. I have done this for a WPF project in the past, and it works just fine. However, you will not have such supported types as DataPager , but just write your own or drop a few buttons on your view of this page through the collection.

+1
source

WPF DataGrid does not display DataGrid by default. You must have your own implementation. Here is an example. The sample implements First / Previous commands as a ViewModel, however I would advise you to move these commands as part of the control and create a custom DataGrid control that can be reused in the application.

+1
source

All Articles