I haven't written the gridview Event code for a long time. I just wrote a rowcommand event and the following error occurs:
The GridView 'gv '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 'gv '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.
Find the cause and find that you want to add the following event RowEditing:
. Aspx:
<Asp: GridView ID = "GridView1" runat = "server" OnRowEditing = "Editing">
<Columns>
<Asp: CommandField ShowEditButton = "true"/>
</Columns>
</Asp: GridView>
. Cs:
Protected void Editing (object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e. NewEditIndex;
}
Other events, such as Delete, Cancel, and Update, are similar.
Programming skills are the same as tools. If you don't need them for a long time, they will rust. Note ~~~