Reputation: 7566
I have this exception i have a asp.net gridview with select edit and delete button when i click edit or delete i have this bug. the gridview is inside a update pane
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The GridView 'combinationViewGridView' fired event RowEditing which wasn't handled.
any ideas
Upvotes: 1
Views: 3346
Reputation: 768
Do you actually edit the row on the codebehind? If you are not just use commandName="Select"
Upvotes: 1
Reputation: 2785
On your ASPX page
<asp:GridView id="myGV" OnRowEditing="myGV_RowEditing" OnRowDeleting="myGV_RowDeleting" ...
On your code behind
protected void myGV_RowEditing(object sender, GridViewEditEventArgs e) {}
protected void myGV_RowDeleting(object sender, GridViewDeleteEventArgs e) {}
Upvotes: 1
Reputation: 37523
Even if the code to handle the update isn't in the rowEditing event, the event must be handled at the page level. You will need to add the event in your code behind and then just return false or exit sub (for vb) to allow the update panel to proceed with its mojo.
Upvotes: 2
Reputation: 33857
You haven't handled the rowEditing event in your code behind, which is required. Handle the event.
Upvotes: 1