public Modificar_ropa()
        {
            InitializeComponent();
            dataGridView1.AllowUserToAddRows = false;
            Base_de_datos busc = new Base_de_datos();

            busc.BuscarCategoriaNom("");
            dataGridView1.DataSource = busc.Mostrar_Resultados();


            foreach (DataGridViewRow row in dataGridView1.Rows)
            {
                txtUnidad.Items.Add(row.Cells[1].Value.ToString());
            }

            txtcod.Text    = Base_de_datos.CodMed;
            txtnom.Text    = Base_de_datos.nommedi;
            txtUnidad.Text = Base_de_datos.cate;
            if (Base_de_datos.estadoE == "ACT")
            {
                cmbestado.Text = "Activo";
            }
            else
            {
                cmbestado.Text = "Inactivo";
            }
        }
Exemple #2
0
        public Ingreso_ropa()
        {
            InitializeComponent();
            dataGridView1.AllowUserToAddRows = false;
            Base_de_datos busc = new Base_de_datos();

            busc.BuscarCategoriaNom("");
            dataGridView1.DataSource = busc.Mostrar_Resultados();


            foreach (DataGridViewRow row in dataGridView1.Rows)
            {
                txtUnidad.Items.Add(row.Cells[1].Value.ToString());
            }
        }