Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 511
  • Last Modified:

asp.net, gridview, fired event error

The GridView fired event Sorting which wasn't handled.

I got above error message in gridview. No wonder why and how to fix....
0
CoolDev2014
Asked:
CoolDev2014
1 Solution
 
Jitendra PatilSr.Software EngineerCommented:
i think you are trying to sorting your gridview and you have not handled the sorting event in the code behind as below.

protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)
{
    ...
}

When you are manually doing the data binding, you have to handle all the events around it
For sorting, you should have a handler for GridView's Sorting event.

just check for properties of gridview in visual studio and select the event tab and select sorting, double click in the box and it will be automatically generated in code behind

hope this helps.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now