onrowupdating event not working
<p>I dont know why because <code>onrowdeleting</code> works fine
The delete method is in the same class as the update method</p>

<pre><code>&lt;form id="formulario" runat="server" method="post"&gt;
&lt;asp:GridView AllowPaging="true" id="inf_clientes" AutoGenerateColumns="false" 
 runat="server" GridLines="Both" BorderWidth="1" 
onrowdeleting="Grid_DeleteCommand" onrowupdating="Grid_UpdateCommanda"
DataKeyNames="cliente_id,nombre,apellido,celular"&gt;
&lt;Columns&gt;
&lt;asp:TemplateField&gt;
    &lt;ItemTemplate&gt;
        &lt;asp:ImageButton CommandName="Delete" runat="server" ValidationGroup="validation" ImageUrl="borrar.jpg" ToolTip="Borrar" Height="20px" Width="20px"  /&gt;
    &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField&gt;
    &lt;ItemTemplate&gt;
        &lt;asp:ImageButton CommanName="Update" ImageUrl="guardar.jpg" ValidationGroup="validation" runat="server" ToolTip="Guardar" Height="20px" Width="20px" /&gt;
    &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
</code></pre>

<p>and code behind </p>

<pre><code>protected void Grid_UpdateCommanda(object origen,GridViewUpdateEventArgs e)
    {   


        con.Open();
        EjecutarComando = new SqlCommand("UPDATE dclntes SET nombre='c' where cliente_id=4",con);
        EjecutarComando.ExecuteNonQuery();
        con.Dispose();
        todos();
    }
</code></pre>

<p>If you need more let me know</p>
