Click here to Skip to main content
15,887,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Updated 20-Jul-11 1:12am
v2

Hi,

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.
 
Share this answer
 
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900