Silverlight Datagrid Paging

One of the problems I met in Silverlight 2 was paging option in viewing large data content. And to do this I googled this and found several good examples but the best was done by Manish Dalal. In every click to “next” the new set of data is taken from list.

Stealth paging refers to the concept of retrieving data in background just before it is needed. You start by loading DataGrid with only one or two pages worth of data, just enough to cover the screen and some more. Now when user starts scrolling, and nears the end of available rows to show, we fetch additional data and add it to the data collection. User continues scrolling, without ever realizing that data was fetched in the background. [from this blog]



Important Point:

public class PeopleService {

public List
GetData(int startRow, int endRow) {
personList = new List
for (int i = startRow; i < endRow; i++) {
personList.Add(new Person() {

//databasseden i'inci row u getir???

FirstName = string.Format("Ali"),
LastName = string.Format("Veli"),
Age = i,
City = string.Format("Izmir"),


return personList;


Download Sample Solution
kick it on