J
Jaime
Hi all,
I have a datagrid with 2 databound columns and one EditCommandColumn, now
when I press the edit link, the correct OnEditCommand event is generated and
my user defined function is called (I'm sepcifying the name of the function
in the datagrid OnEditCommand="OnEdit"). Now the problem is that when I
press the update linkbutton, the datagrid calls my OnEdit function and when
I press the cancel linkbutton, the datagrid calls nothing in my code and it
cancels the edit mode.... One more thing, every event, the OnCommand handler
is called except the OnCancel...
Any help?
Here's the definiction of the datagrid
<aspataGrid ID="CuentasDG"
HorizontalAlign="Center"
AutoGenerateColumns="False"
CellPadding="3"
OnUpdateCommand="Cuentas_OnUpdate"
OnCancelCommand="Cuentas_OnCancel"
OnItemDataBound="Cuentas_OnItemDataBound"
OnEditCommand="Cuentas_OnEdit"
OnItemCommand="Cuentas_OnCommand"
Runat="server" >
And each Cuentas_On... is defined as:
protected void Cuentas_OnEdit( object sender, DataGridCommandEventArgs e )
protected void Cuentas_OnUpdate( object sender, DataGridCommandEventArgs e )
protected void Cuentas_OnCancel( object sender, DataGridCommandEventArgs e )
protected void Cuentas_OnCommand( object sender, DataGridCommandEventArgs
e )
I have a datagrid with 2 databound columns and one EditCommandColumn, now
when I press the edit link, the correct OnEditCommand event is generated and
my user defined function is called (I'm sepcifying the name of the function
in the datagrid OnEditCommand="OnEdit"). Now the problem is that when I
press the update linkbutton, the datagrid calls my OnEdit function and when
I press the cancel linkbutton, the datagrid calls nothing in my code and it
cancels the edit mode.... One more thing, every event, the OnCommand handler
is called except the OnCancel...
Any help?
Here's the definiction of the datagrid
<aspataGrid ID="CuentasDG"
HorizontalAlign="Center"
AutoGenerateColumns="False"
CellPadding="3"
OnUpdateCommand="Cuentas_OnUpdate"
OnCancelCommand="Cuentas_OnCancel"
OnItemDataBound="Cuentas_OnItemDataBound"
OnEditCommand="Cuentas_OnEdit"
OnItemCommand="Cuentas_OnCommand"
Runat="server" >
And each Cuentas_On... is defined as:
protected void Cuentas_OnEdit( object sender, DataGridCommandEventArgs e )
protected void Cuentas_OnUpdate( object sender, DataGridCommandEventArgs e )
protected void Cuentas_OnCancel( object sender, DataGridCommandEventArgs e )
protected void Cuentas_OnCommand( object sender, DataGridCommandEventArgs
e )