R
Randy
I'm trying to get data out of an excel file, but for
first column below the Type is System.DBNull. The other
2 columns the Type is System.String. But then after a
few more rows, a second column's type becomes
System.DBNull so whenever the type is System.DBNull, I
can't get the cell value as a string.
What causes a cells Type to be System.DBNull?
tia
Randy
mytype = ds_sma.Tables["ExcelSheet"].Rows[intRow]
[194].GetType();
mytype = ds_sma.Tables["ExcelSheet"].Rows[intRow]
[195].GetType();
mytype = ds_sma.Tables["ExcelSheet"].Rows[intRow]
[193].GetType();
first column below the Type is System.DBNull. The other
2 columns the Type is System.String. But then after a
few more rows, a second column's type becomes
System.DBNull so whenever the type is System.DBNull, I
can't get the cell value as a string.
What causes a cells Type to be System.DBNull?
tia
Randy
mytype = ds_sma.Tables["ExcelSheet"].Rows[intRow]
[194].GetType();
mytype = ds_sma.Tables["ExcelSheet"].Rows[intRow]
[195].GetType();
mytype = ds_sma.Tables["ExcelSheet"].Rows[intRow]
[193].GetType();