Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Push button in DataGrid
Message
De
23/09/2004 15:33:22
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00945320
Message ID:
00945492
Vues:
21
I am able to get the LinkButton button type to work in my grid but not the PushButton button type. I am not sure why. I even place a PushButton and LinkButton in the same grid, but only the LinkButton works.

I create a ItemCommand event called mygrid_ItemCommand and when any of the LinkButtons are clicked, my mygrid_ItemCommand event is called. But if a PushButton is pressed in the same grid, nothing happens.

I guess I'll stick with LinkButton instead of PushButtons.

Thanks,

Jerry



>In the grid property window, specify doEdit for EditCommand.
>
>
>private void InitializeComponent()
> {
>this.DataGrid1.EditCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.doEdit);
>this.Load += new System.EventHandler(this.Page_Load);
> }
> #endregion
>
>private void doEdit(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
> {
> Response.Write("editing");
> }
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform