判断DataTale中判断某个字段中是否包含空值

 DataRow[] dataRows = dt.Select("isnull("+ columnName  +", '') = ''");
    if (dataRows.Length > 0)
     {
           MessageBox.show("[" + columnName  + "]列包含空值数据");
            return ;
      }

  

posted @ 2019-08-21 13:56  米斯特唐  阅读(278)  评论(0编辑  收藏  举报