This is a migrated thread and some comments may be shown as answers.

[Solved] Custom paging

0 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
russ
Top achievements
Rank 1
russ asked on 28 Jan 2011, 11:25 AM
Hi all,

I'm attempting to bind the datagrid to the results of a webservice that pages the results for me.  I.e. the first hit to the webservice tells me there is 200 results, and contains the first 10 results.  The next hit to the webservice takes a "page=2" parameter, and returns the next 10 results.

The examples I see for the grid appear to return all their results from the controller.  This post tells me that the grid control uses LINQ expressions to build the query.  Maybe I could build an IQueryable wrapper for the webservice?  This article looks helpful: http://blogs.msdn.com/b/mattwar/archive/2007/07/30/linq-building-an-iqueryable-provider-part-i.aspx

Interested to know if anyone else has attacked this same problem.

Thanks,
Russ
Tags
Grid
Asked by
russ
Top achievements
Rank 1
Share this question
or