Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Push button in DataGrid
Message
From
23/09/2004 08:24:29
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Push button in DataGrid
Miscellaneous
Thread ID:
00945320
Message ID:
00945320
Views:
57
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
Next
Reply
Map
View

Click here to load this message in the networking platform