I had Grid view and I added property allow sorting in it and I converted all fields in grid view to item template and after that this error appeared (The GridView ‘GridView1’ fired event sorting which wasn’t handled)
Please anyone help me
.
‘>
‘>
‘>
‘>
‘>
‘>
‘>
‘>
‘>
‘>
‘>
‘>
‘>
‘>
If you are not binding your GridView to SqlDataSource and you are setting its AllowSorting to true, you need to do sorting manually. You need to assign sorting event to the GridView, and write your own code to implement the sorting. You can refer to the code below, and modify accordingly.
On aspx page:
On codebehind: