예제 #1
0
        protected void GridCarro_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            objGestion = new GestionBD();
            Carro objCarro = new Carro();

            objCarro.idCarro = Convert.ToInt32(GridCarro.DataKeys[e.RowIndex].Value.ToString());
            objGestion.eliminarCarro(objCarro);
            GridCarro.EditIndex = -1;
            cargaCarro();

            mostrarMensaje("Borrado Exitoso", true);
        }
예제 #2
0
        protected void gridCarro_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            objGestion = new GestionBD();
            Carro obj = new Carro();

            obj.IDCARRO = Convert.ToInt32(gridCarro.DataKeys[e.RowIndex].Value.ToString());
            objGestion.eliminarCarro(obj);
            gridCarro.EditIndex = -1;
            cargarCarros();

            mostrarMensaje("Se elimino con exito", true);
        }