Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call RowEditing from image button
Message
From
10/04/2007 14:45:08
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
How to call RowEditing from image button
Miscellaneous
Thread ID:
01214099
Message ID:
01214099
Views:
78
Hi all,

I am learning C# trying many examples. Following lines of code gives message:
Error 1	'System.Web.UI.WebControls.GridView' does not contain a definition for 'GridView1_RowEditing'	
(pointing to ImageButton1_RowEditing() )


public int EditIndex = -1;
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
    GridView1.EditIndex = e.NewEditIndex;
}

protected void  ImageButton1_RowEditing(object sender, ImageClickEventArgs e)
{
   this.GridView1.GridView1_RowEditing();
}
What would be a proper call of GridView1_RowEditing in ImageButton1_RowEditing ?
TIA,
Gojko
Next
Reply
Map
View

Click here to load this message in the networking platform