空值判断

var 多码 = row.Cells["MoreCode"].Value;
if (多码 == null || 多码.ToString() != "Y")
{
     row.Cells["MoreCode"].Value = "Y";
}
else
{
     row.Cells["MoreCode"].Value = null;
}

posted @ 2024-12-06 13:18  网络来者  阅读(17)  评论(0)    收藏  举报