Accessing Excel Spreadsheet with C# occasionally returns blank value for some cells

后端 未结 10 2120
無奈伤痛
無奈伤痛 2020-12-11 02:43

I need to access an excel spreadsheet and insert the data from the spreadsheet into a SQL Database. However the Primary Keys are mixed, most are numeric and some are alpha-n

10条回答
  •  醉梦人生
    2020-12-11 02:49

    The ItemArray is an Object Array. So I assume that the "column" in the DataRow, that I am trying to reference, is of type object.

提交回复
热议问题