Reading Numeric column in excel as text .
-
I am trying to read an Excel sheet to my program using OleDbDataAdapter into datatable , this is working fine except that if the excel column is text and taken into string field in the datatable its read as blank . anyone came across such a case . I am using ,NET 2.o framework with visual studio 2005 - C# . thankx
-
I am trying to read an Excel sheet to my program using OleDbDataAdapter into datatable , this is working fine except that if the excel column is text and taken into string field in the datatable its read as blank . anyone came across such a case . I am using ,NET 2.o framework with visual studio 2005 - C# . thankx
Actually , if the first data cell in the column is numeric , the full column is read as numeric and any text in the same column is read as blank . and if the first data cell is text then the full column is read as text and any numeric cell in the same column is read as blank . I have columns with mixed data , some numeric only and some are string . any hints ?
-
Actually , if the first data cell in the column is numeric , the full column is read as numeric and any text in the same column is read as blank . and if the first data cell is text then the full column is read as text and any numeric cell in the same column is read as blank . I have columns with mixed data , some numeric only and some are string . any hints ?