Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DBAccs db = new DBAccs();

            db.OpenConnection();

            DataSet ds = new DataSet();

            db.Search(comboBox1.SelectedItem.ToString(), textBox1.Text).Fill(ds);
            dataGridView1.DataSource = ds.Tables[0].DefaultView;
        }