检查单元格值是否为null
问题描述:
亲爱的所有
我已经附加了一个Excel工作表值数据集现在我想检查excel工作表的每个单元格值是否为NULL或非。帮助请尽快
提前致谢
谢谢和Reagrds
Maheswar Tripathy
Dear All
I have attached an Excel sheet value with data set now i want to check each cell value of excel sheet wheather is NULL or Not.Kindly help as soon as possible
Thanks in advance
Thanks & Reagrds
Maheswar Tripathy
答
这是另一种解决方案
Here is another solution
for (int i = 0; i < table.Rows.Count; i++)
{
if (table.Rows[i]["Employee"] == DBNull.Value)
{
string s = string.Empty;
}
}