-1
我想在C#和DataGridView
的訪問文件中搜索Textbox
的關鍵字,我的代碼在下面,但有錯誤「缺少操作數」的問題;如何通過關鍵字過濾datagridview?
BindingSource bs = new BindingSource();
bs.DataSource = dataGridView1.DataSource;
bs.Filter = "select * FROM book WHERE onvan like '*" + textBox1.Text + "*'";
dataGridView1.DataSource = bs;