Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
Problem with using Paging and Sorting
posted

Hi everyone,

In my project, i am using a webgrid to do paging and sorting.  I am doing both of these using Linq.skip().take()

With sorting, i use the Grid Sortcolumn event handler.  With paging, i'm sending the page number via query string and the code behind will take the page number from the query string and skip records.

The problem i am facing now is on the initial load, the sortcolumn even handler will work every time i click on a column to be sorted, however, once i go to a new page (query string), whenever i try to click on a sorted column, the sort column event handler will not be called.  I can see the page is getting postback, but still no sort column even handler. 

Any ideas?