F
Fortra
I'm having trouble with the UpdateCommand event with the
DataGrid control. The event is wired up in the
InitializeComponents properly,
this.sitesDataGrid.UpdateCommand +=
new System.Web.UI.WebControls.DataGridCommandEventHandler
(this.sitesDataGrid_UpdateCommand);
but when the "Update" button is clicked, the eventhandler
is never fired. The "Edit" command fires its
eventhandler, but "Update" and "Cancel" do not.
One peculiar thing I have noticed is that the ItemCommand
event fires for both the Edit and Update button. However,
for both, the CommandName (e.CommandName) is always "Edit".
What am I doing wrong???
Thanks in advance!!
DataGrid control. The event is wired up in the
InitializeComponents properly,
this.sitesDataGrid.UpdateCommand +=
new System.Web.UI.WebControls.DataGridCommandEventHandler
(this.sitesDataGrid_UpdateCommand);
but when the "Update" button is clicked, the eventhandler
is never fired. The "Edit" command fires its
eventhandler, but "Update" and "Cancel" do not.
One peculiar thing I have noticed is that the ItemCommand
event fires for both the Edit and Update button. However,
for both, the CommandName (e.CommandName) is always "Edit".
What am I doing wrong???
Thanks in advance!!