首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VC >

无法在 System.String 和 System.Int64 上执行“=”操作。解决思路

2012-03-31 
无法在 System.String 和 System.Int64 上执行“”操作。我在ComboBox上绑定了数据库的一列值,我点选ComboBo

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


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

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

热点排行