I have an app that uploads an excel spreadsheet reads it into a dataset and then uploads the dataset to a sql server table. It works perfect except for one thing.
One column in the spreadsheet has 'Item Numbers' that are all alphnumeric and numeric mixed. Even though the row is formatted as text (and the numbers are stored as text), the DataSet sees the numbers in the column as numbers and not as text, so only the 'Item Numbers' that begin with a character between A and Z go into the dataSet and the numberic values in the column are skipped.
the column looks like this:
ItemNo
----------------------
80977284 (not omitted!)
80977284 (omitted)
180-1260
80660101 (omitted)
80660101 (omitted)
AW-0070
AW1502
AW1261171N
AW900-0093
AW1504
AW180-1542
AW-0046
AW180-1542
AW900-0093
BAKSB22415C
BAKDPP1216
331743 (omitted)
331743 (omitted)
AW-1480
AW-1240
AWC0290814
AWHO271346
516931 (omitted)
80797347
BFIT211840
BFIT20308
287938 (omitted)
287938 (omitted)
80531503 (omitted)
80531503 (omitted)
80846740 (omitted)
BAKSB22855
BAKSB22846
How can I get the DataSet to accept the numbers as String values?
One column in the spreadsheet has 'Item Numbers' that are all alphnumeric and numeric mixed. Even though the row is formatted as text (and the numbers are stored as text), the DataSet sees the numbers in the column as numbers and not as text, so only the 'Item Numbers' that begin with a character between A and Z go into the dataSet and the numberic values in the column are skipped.
the column looks like this:
ItemNo
----------------------
80977284 (not omitted!)
80977284 (omitted)
180-1260
80660101 (omitted)
80660101 (omitted)
AW-0070
AW1502
AW1261171N
AW900-0093
AW1504
AW180-1542
AW-0046
AW180-1542
AW900-0093
BAKSB22415C
BAKDPP1216
331743 (omitted)
331743 (omitted)
AW-1480
AW-1240
AWC0290814
AWHO271346
516931 (omitted)
80797347
BFIT211840
BFIT20308
287938 (omitted)
287938 (omitted)
80531503 (omitted)
80531503 (omitted)
80846740 (omitted)
BAKSB22855
BAKSB22846
How can I get the DataSet to accept the numbers as String values?