DataRow[] dataRows = dt.Select("isnull("+ columnName +", '') = ''");
if (dataRows.Length > 0)
{
MessageBox.show("[" + columnName + "]列包含空值数据");
return ;
}
DataRow[] dataRows = dt.Select("isnull("+ columnName +", '') = ''");
if (dataRows.Length > 0)
{
MessageBox.show("[" + columnName + "]列包含空值数据");
return ;
}
转载于:https://www.cnblogs.com/xiaoheihei/p/11388368.html