Today I was called in to look at an issue where a GridView that had a button column was exhibiting some strange behaviors. Everything was fine until you sorted or paged the GridView. After that, the button columns no longer referred to the correct rows. The rows sorted, but the buttons did not. Short answer was that we found someone had inadvertantly set EnableSortingAndPagingCallbacks to True on the GridView. Setting this to false fixed the problem. Has anyone else experienced this? Why is it causing the button columns not to sort correctly?
[This post was originally posted at my DevAuthority.com blog.
http://www.devauthority.com/blogs/dbalzer/default.aspx Go to
http://www.devauthority.com to get your own .Net blog.]