Click here to Skip to main content
15,890,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am deveoping an Airline management system, i have a searchPilot page for the user its working well, now i want the user to edit the data on the Gridview, it's giving me the following error

[ The GridView 'GridView1' fired event RowEditing which wasn't handled.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The GridView 'GridView1' fired event RowEditing which wasn't handled.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The GridView 'GridView1' fired event RowEditing which wasn't handled.]
System.Web.UI.WebControls.GridView.OnRowEditing(GridViewEditEventArgs e) +1484061
System.Web.UI.WebControls.GridView.HandleEdit(Int32 rowIndex) +43
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +693
System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +210
System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563]

Please help me.
Posted

Perhaps taking a look at The DX Airways project and source code[^] will help you getting something up and running ...

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Oct-11 22:49pm    
Nice solution and sample code, a 5.
--SA
Espen Harlinn 17-Oct-11 9:47am    
Thank you, Sergey!
Simon Bang Terkildsen 18-Oct-11 16:07pm    
+5!
Espen Harlinn 18-Oct-11 17:01pm    
Thank you, Simon!
Take a look at this Asp.net forum. The GridView 'GridView1' fired event RowEditing ...[^]
 
Share this answer
 
add this property to your gridview control


VB
OnRowEditing="GridView1_RowEditing"


and add this event it code behind page(.cs page
)
C#
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
  {

  }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900