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
80
Setting EnableViewState="false" removes the event handlers
posted

I wanted to use the OnSortColumn event handler.

However by setting the EnableViewState="false" in the webgrid, the event does not get fired.

Any alternative way?

I am doing custom sorting with paging that is why I need custom server side logic to pull the data.

Parents
No Data
Reply
  • 8680
    posted

    I don't know if this will help, but:

    Are you putting "OnSortColumn="MyEventHandler()"" in your markup, or are you relying on "Handles MyGrid.OnSortColumn" in your code?"  Be sure to try the "OnSortColumn="MyEventHandler()"" approach.

    HTH

Children