读书人

无法在 System.String 和 System.Int6

发布时间: 2012-03-31 13:13:26 作者: rapoo

无法在 System.String 和 System.Int64 上执行“=”操作。
我在ComboBox上绑定了数据库的一列值,
我点选ComboBox里面的一个值,然后点查询按钮,想让DataGridview对象中显示根据comboBox那个值查询到的内容


rOLLDATATABLEBindingSource1-> Filter = "COIL_NO= " + comboBox1-> SelectedValue-> ToString();
我是这么写的 ,但运行以后点击查询:
无法在 System.String 和 System.Int64 上执行“=”操作。

[解决办法]
rOLLDATATABLEBindingSource1-> Filter
是System.Int64?

读书人网 >VC

热点推荐