Geeks With Blogs
Jeroen Bourdeaud'hui web application developer Linq
Paging using Linq
Last, I needed a function to add paging. The first problem I had, was how to this. A couple of seconds later, I allready had a solution to this problem: Linq Skip and take will do the trick. list<t>.Skip(_howMany... This won't crash if you pass one of both statements. It will just return the result. source.Skip(startRowIndex).... I've created an extension method to use this function. VB Module LinqHelpers <System.Runtime.Compiler... ......

Posted On Tuesday, May 10, 2011 12:22 PM

Copyright © Jeroen Bourdeaud'hui | Powered by: