I have a gridview with paging, which displays 5 records in each page.
How can I sort the elements of the current page only?
And other pages should not be sort?
I am using ASP.NET and C#.NET.
Is there any way to do this in LINQ?
Thank You.
I have a gridview with paging, which displays 5 records in each page.
How can I sort the elements of the current page only?
And other pages should not be sort?
I am using ASP.NET and C#.NET.
Is there any way to do this in LINQ?
Thank You.
You should just use a client-side library if you just want to sort what is displayed. Here is an example of one in jQuery: http://tablesorter.com/docs/. There are tons of them out there - just do a bit of Googling. At that point it doesn't matter what server side language you use (although my guess is ASP.NET)