Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call RowEditing from image button
Message
De
10/04/2007 14:45:08
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
How to call RowEditing from image button
Divers
Thread ID:
01214099
Message ID:
01214099
Vues:
79
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform