예제 #1
0
        public void VerDatosDataGridView()
        {
            Conexion cn = new Conexion();
            FormAgregarExpediente Ag = new FormAgregarExpediente();

            //SqlConnection cn = new SqlConnection("Data Source=DESKTOP-KNIF4SO;Initial Catalog=Proyecto_Casos;User ID=sa;Password=123");
            // SqlConnection cn = new SqlConnection("Data Source=DESKTOP-GBVPD8B;Initial Catalog=ProyectoCasos;User ID=sa;Password=1234");
            //SqlConnection cn = new SqlConnection("Data Source=DESKTOP-T0686SL;Initial Catalog=Proyecto_Casos;User ID=sa;Password=lfer");

            cn.AbrirConeccion();
            SqlCommand     com = new SqlCommand("exec dbo.SP_VerPerfil", cn.AbrirConeccion());
            SqlDataAdapter da  = new SqlDataAdapter(com);
            DataTable      dt  = new DataTable();

            da.Fill(dt);
            //dtgCrearExpediente.DataSource = dt;
        }
예제 #2
0
        private void btnNuevo_Click_1(object sender, EventArgs e)
        {
            FormAgregarExpediente FrmAgregar = new FormAgregarExpediente();

            FrmAgregar.Show();
        }