在我的表中一个字段使用GUID,现在我要根据一个给定的GUID来过滤数据,使用如下方式却出错,不知道该怎么做?
Guid guid="";//赋值
this.bindingSource.Filter=string.Format("col={0}",guid);//对于整数,该方法正确
现在请问怎么改?
Guid guid="";//赋值
this.bindingSource.Filter=string.Format("col={0}",guid);//对于整数,该方法正确
现在请问怎么改?
解决方案 »
- 请问这个SQL怎么写啊?
- SQL服务管理器 无法启动
- 一个行列互换的问题
- 请问如何实现 用 t-sql 语句 插入 "000001" 至 "999999" 的 字符串???????????急!!!!!!!!!!!!!!!!!!!!!!!!!!!
- 求教改变数据表表现方式,有点类似行转列,但还是有点不大一样,先谢谢了
- 使用C#如何将sqlserver2005数据导出为规定格式的XML文档?
- 邹建等等等各路高手,关于触发器!如何禁用递归调用触发器?
- 一个SQL server的题目,不太会
- 关于更新字段信息的问题
- MSSQL2000多版本BOM表计算产品成本(bom表重复使用到该半成品(同版本号))
- 查询分析器出错isqlw.exe []发生未处理的win32错误
- 写了一个登录的存储过程,其中上次登录时间无法更新
How do I move to a position in a bindingsource that matches a primary key value?I seem to be having a problem with the bindingsource.find property.
I need to be able to move to a specific bindingsource position that contains a specific GUID.I was trying to use:
BindingSource.Position = BindingSource.Find("Guid", TempGUID)The error is: Specified method is not supported.
How do you get it to work when using GUID ?Thanks,上面是在网上搜到的一个类似问题,不过也没有人解答
this.bindingSource.Filter=string.Format("col='{0}'",guid);//对于整数,该方法正确