OleDbDataAdapter填充方法错误. [英] OleDbDataAdapter Fill method error.

查看:112
本文介绍了OleDbDataAdapter填充方法错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在将EXCEL工作表转换为DataTable. EXCEL工作表具有项目编号"列.该列可以具有整数值(例如14576)或数字和字符的混合值(例如178K9).以下语句将excel工作表填充到数据表"dtPatterns"中.

Hi,
I am converting EXCEL sheet into DataTable. EXCEL sheet has column "Item Number". That column can have values of integer (Eg 14576) or mixture of number and characters (Eg. 178K9). Following statement fills excel sheet into data table "dtPatterns".

excelDataAdapter.Fill(dtPatterns);


复制第二种类型的号码,即(178K9)无法正常工作.我正在毫无例外地得到空字符串.有人知道解决方案吗?

谢谢,
Bipin


Copy second type of number i.e (178K9) is not working. I am getting empty string without any exception. Does anyone know the solution?

Thanks,
Bipin

推荐答案

此处 [^ ]


这篇关于OleDbDataAdapter填充方法错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆