Hi,
when I load a CSV file into a DataSet, and try to display it in a gridView,
it clearly only displays the first column.
what am i forgetting?
this is my code
OleDbConnection ExcelConnection = new
OleDbConnection (@"Provider=Mic rosoft.Jet.OLED B.4.0;Data Source=" + pathName +
";Extended Properties='tex t;HDR=No;FMT=De limited'");
//
OleDbCommand ExcelCommand = new OleDbCommand(@" SELECT * FROM " +
fileName, ExcelConnection );
OleDbDataAdapte r ExcelAdapter = new OleDbDataAdapte r(ExcelCommand) ;
ExcelConnection .Open();
DataSet ExcelDataSet = new DataSet();
ExcelAdapter.Fi ll(ExcelDataSet );
ExcelConnection .Close();
return ExcelDataSet;
when I load a CSV file into a DataSet, and try to display it in a gridView,
it clearly only displays the first column.
what am i forgetting?
this is my code
OleDbConnection ExcelConnection = new
OleDbConnection (@"Provider=Mic rosoft.Jet.OLED B.4.0;Data Source=" + pathName +
";Extended Properties='tex t;HDR=No;FMT=De limited'");
//
OleDbCommand ExcelCommand = new OleDbCommand(@" SELECT * FROM " +
fileName, ExcelConnection );
OleDbDataAdapte r ExcelAdapter = new OleDbDataAdapte r(ExcelCommand) ;
ExcelConnection .Open();
DataSet ExcelDataSet = new DataSet();
ExcelAdapter.Fi ll(ExcelDataSet );
ExcelConnection .Close();
return ExcelDataSet;
Comment