Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

asp.net, gridview, fired event error

Posted on 2014-02-27
1
Medium Priority
?
506 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 13

Accepted Solution

by:
Jitendra Patil earned 2000 total points
ID: 39894359
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
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…
Suggested Courses

877 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