T
tma
I have an untyped Dataset I'm reading in from Excel and writing to a
..NewDataRow.
My problem is that some of the cells in Excel are empty and writing those
cells to the datarow cause a DBNull error. Here's my code:
drInventoryItem = dsInv.Inventory.NewInventoryRow
drInventoryItem.ItemCat2ID =
dsImportInventory.Tables(0).Rows(x).Item("Category2")
Any thoughts on how to overcome this?
..NewDataRow.
My problem is that some of the cells in Excel are empty and writing those
cells to the datarow cause a DBNull error. Here's my code:
drInventoryItem = dsInv.Inventory.NewInventoryRow
drInventoryItem.ItemCat2ID =
dsImportInventory.Tables(0).Rows(x).Item("Category2")
Any thoughts on how to overcome this?