A
Alex
I have a datagrid with two additional columns (edit, delete).
However the edit and delete handlers in the code behind page are never
reached.
When I click on the delete or edit button the load page handler gets
executed nothing else.
What could I do wrong?
Here some code:
private void InitializeComponent()
{
this.DataGrid1.PageIndexChanged += new
System.Web.UI.WebControls.DataGridPageChangedEventHandler(this.DataGrid1_Pag
eIndexChanged);
this.DataGrid1.EditCommand += new
System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_EditCom
mand);
this.DataGrid1.DeleteCommand += new
System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_Delete)
;
this.Load += new System.EventHandler(this.Page_Load);
}
protected void DataGrid1_EditCommand(Object sender, DataGridCommandEventArgs
e)
{
////
}
However the edit and delete handlers in the code behind page are never
reached.
When I click on the delete or edit button the load page handler gets
executed nothing else.
What could I do wrong?
Here some code:
private void InitializeComponent()
{
this.DataGrid1.PageIndexChanged += new
System.Web.UI.WebControls.DataGridPageChangedEventHandler(this.DataGrid1_Pag
eIndexChanged);
this.DataGrid1.EditCommand += new
System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_EditCom
mand);
this.DataGrid1.DeleteCommand += new
System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_Delete)
;
this.Load += new System.EventHandler(this.Page_Load);
}
protected void DataGrid1_EditCommand(Object sender, DataGridCommandEventArgs
e)
{
////
}