Solved

asp.net, gridview, fired event error

Posted on 2014-02-27
1
464 Views
Last Modified: 2014-03-02
The GridView fired event Sorting which wasn't handled.

I got above error message in gridview. No wonder why and how to fix....
0
Comment
Question by:CoolDev2014
1 Comment
 
LVL 12

Accepted Solution

by:
Jitendra Patil earned 500 total points
Comment Utility
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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now