Exemplo n.º 1
0
        // Al hacer click en "Eliminar"
        private void botonera1_Click_Baja(object sender, EventArgs e)
        {
            if (dgv_datos.CurrentRow == null)
            {
                return;
            }

            try
            {
                Modelo_Entidades.Auditoria_Log oAud = (Modelo_Entidades.Auditoria_Log)dgv_datos.CurrentRow.DataBoundItem;
                cAuditoria.BajaAuditoria(oAud);
                MessageBox.Show("Se ha eliminado el registro");
                Arma_Lista();
            }
            catch (Exception Exc)
            {
                MessageBox.Show(Exc.InnerException.ToString());
            }
        }