protected void gdvCarrito_RowUpdating(object sender, GridViewUpdateEventArgs e) { int mCantidad = int.Parse(((DropDownList)gdvCarrito.Rows[e.RowIndex].FindControl("ddlCantidad")).SelectedValue); float mPrecio = float.Parse(((Label)gdvCarrito.Rows[e.RowIndex].FindControl("lblPrecioUnitario")).Text) * mCantidad; CartService.ActualizarItem(e.RowIndex, mCantidad, mPrecio); GetCarrito(); gdvCarrito.EditIndex = -1; CargarGrilla(); }