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