急 csv 格式的一个问题
string strCon;
string strSql;
OleDbConnection oleCon = new OleDbConnection();
string filepath=System.IO.Path.GetDirectoryName(filename);
strCon =@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filepath +";Extended Properties=Text;";
strSql = "Select * from " + System.IO.Path.GetFileName(filename);
oleCon.ConnectionString = strCon;
OleDbDataAdapter oleadp =new OleDbDataAdapter(strSql,oleCon);
DataSet ds=new DataSet("CSV");
oleadp.Fill(ds);
用以上方法读出的csv到datatable ,但是其中的 字符串如果是数字组成会变成数字类型,怎么办