Click here to Skip to main content
Rate this: bad
good
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 2:40am
Edited 20-Jul-11 1:12am
v2
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  
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  

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

  Print Answers RSS
0 OriginalGriff 339
1 Maciej Los 208
2 George Jonsson 144
3 Kornfeld Eliyahu Peter 139
4 Dave Kreskowiak 130


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