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)
{
}
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