有关RowFilter的未解决错误 [英] unresolved error concerning RowFilter
本文介绍了有关RowFilter的未解决错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在下面的陈述中出错了:
不能罚款[name]
I got an error with the below statements :
Can not fine column [name]
DataView DV = new DataView(dbdataset);
MessageBox.Show(textBox1.Text);
DV.RowFilter = string.Format("name LIKE '%{0}%'", textBox1.Text);
this.dataGridView1.DataSource = DV;
推荐答案
您构建了一个过滤器,您可以将name
列与内容进行比较textBox1.Text
。显然没有这样的列名称
!!!
在运行时检查DataView并更正问题...
You build a filter where you comparename
column to the content oftextBox1.Text
. Obviously there is no such columnname
!!!
Check you DataView at runtime and correct the problem...
这篇关于有关RowFilter的未解决错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文