Exemplo n.º 1
0
        private void txtnom_TextChanged(object sender, EventArgs e)
        {
            if (txtnom.Text == " ")
            {
                txtdescripcion.Text = " ";
            }

            if (radioSerNombre.Checked && txtnom.TextLength >= 1)
            {
                Base_de_datos busc = new Base_de_datos();
                busc.BuscarRopaNom(txtnom.Text.ToUpper());
                dataGridView1.DataSource = busc.Mostrar_Resultados();
            }

            else
            {
                dataGridView1.DataSource = null;
            }


            txtdescripcion.Clear();
        }