GridView Sorting event is not firing
GridView Sorting and Paging are works fine when I set EnableSotringAndPagin开发者_如何学运维gCallbacks to false. however when I set it to true the sort event does not fire (the paging works fine).
any ideas?
That is actually the correct behavior.
By default, when a sorting or paging operation is performed, the GridView control posts back to the server to perform the operation. When the EnableSortingAndPagingCallbacks property is set to true, a service is called on the client to perform sorting and paging operations, which eliminates the need to post back to the server.
Read this for more: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.enablesortingandpagingcallbacks.aspx
精彩评论