Click here to Skip to main content
12,625,402 members (34,911 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# Silverlight
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 3:40am
Updated 20-Jul-11 2:12am
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
 
good
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.
  Permalink  

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 | Mobile
Web01 | 2.8.161205.1 | Last Updated 20 Jul 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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