Beispiel #1
0
        protected void dgvTerminalesDestino_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Eliminar")
            {
                int    index      = Convert.ToInt32(e.CommandArgument);
                string idTerminal = dgvTerminalesDestino.Rows[index].Cells[1].Text;
                TerminalDestinoNegocio negocio = new TerminalDestinoNegocio();
                negocio.bajaTerminal(idTerminal);
                Response.Redirect("TerminalesDestino.aspx");
            }



            //if(e.CommandName == "Modificar")
            //{
            //    Response.Redirect("NuevoChofer.aspx");

            //    //int index = Convert.ToInt32(e.CommandArgument);
            //    //Chofer chofer = new Chofer();
            //    //chofer = (Chofer)dgvChoferes.Rows.Cast;
            //}
        }