Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Push button in DataGrid
Message
From
23/09/2004 15:33:22
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00945320
Message ID:
00945492
Views:
22
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");
> }
Previous
Reply
Map
View

Click here to load this message in the networking platform