Questo il mio EditItemTemplate
codice:
<EditItemTemplate>
<asp:Button runat="server" Text="Aggiorna" CommandName="Update" CausesValidation="false"></asp:Button>
<asp:Button runat="server" Text="Annulla" CommandName="Cancel" CausesValidation="false"></asp:Button>
</EditItemTemplate>
Questo il codice (creato da VS.NET) nel code behind:

codice:
	private void InitializeComponent()
		{
this.DataGrid1.UpdateCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_UpdateCommand);
this.DataGrid1.DeleteCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_DeleteCommand);
		}
...e poi sempre nel code behind gestisco l'evento:

codice:
private void DataGrid1_EditCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)