Click here to Skip to main content
13,595,773 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi All,

I have a data grid having group by Country in Silverlight. I have to select a value from the combo box having...
1. 3 records per page
2. 5 records per page
3. 10 records per page
When I select 3 records per page, it only shows 3 rows in the data grid. But I wanted 3 Countries to be displayed on the page and when I select 5 records per page, it should show all the records in 5 countries, i.e pagination based on grouping.
Thanks in advance!!!
Posted 19-Jul-11 2:40am
Updated 20-Jul-11 1:12am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1


To do this, you need to write a proper delegate which you can pass to the PageCollectionView to filter out the records and based on that, call the proper pagination.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Added to Kunal's Answer,Silverlight 4 – Datagrid (Sorting, Grouping, Filtering and Paging) – Tip of the day[^]an article from cp might also help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.180621.3 | Last Updated 20 Jul 2011
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100