Exemplo n.º 1
0
        private void btnTimKiem_Click(object sender, EventArgs e)
        {
            try
            {
                TimKiem   tk = new TimKiem();
                DataTable dt = tk.TKNangCao(txtTimKiem.Text, cbTimTheo.SelectedValue.ToString(), Convert.ToInt32(cbLoaiTimTheo.SelectedValue));
                dgvListTaiLieu.DataSource = dt;
                dgvListTaiLieu.Refresh();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            //dataGridView1.DataSource = ds.Tables[0];
            //cm = BindingContext[this.ds.Tables[0]] as CurrencyManager;
            //label5.Text = cm.Count.ToString();
        }