Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Push button in DataGrid
Message
De
23/09/2004 08:24:29
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Push button in DataGrid
Divers
Thread ID:
00945320
Message ID:
00945320
Vues:
56
I have a datagrid(mydatagrid) in a Webform that has 2 bound columns and 1 button (edit,update,cancel) column. For this button column, I place 'Edit' in the header text and edit text and I make the button type PushButton.

I then create:
private void mydatagrid_Edit(object source, 
			System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
///Some code here.
}
I then go to the events of mydatagrid and select the EditCommand event and set mydatagrid_Edit as the command.

However, when I run my web page (mypage.aspx) and click on the button in the datagrid, the page just refreshes and my mydatagrid_Edit routine is never called.

What am I missing? How can I make this work?

Thanks,

Jerry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform