I'm having trouble with the UpdateCommand event with the
DataGrid control. The event is wired up in the
InitializeCompo nents properly,
this.sitesDataG rid.UpdateComma nd +=
new System.Web.UI.W ebControls.Data GridCommandEven tHandler
(this.sitesData Grid_UpdateComm and);
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
InitializeCompo nents properly,
this.sitesDataG rid.UpdateComma nd +=
new System.Web.UI.W ebControls.Data GridCommandEven tHandler
(this.sitesData Grid_UpdateComm and);
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!!