判断DataRow中某列是否为空的方法

DataRow dr=dt.Rows[0];

if(!dr.IsNull("列名"))

{

  //不为空的操作

}

原文地址:https://www.cnblogs.com/12go/p/2203606.html