用后台判断gridview中的单元格是否为空
XS73111btnQDKCPD
foreach (GridViewRow gridRow in grd.Rows) { if (_page.GridRowIsSelected(gridRow.RowIndex)) { if ( string.IsNullOrEmpty(_page.GetRowDataByKey(gridRow.RowIndex, "WLID")) ) { _page.ShowMessage($"第{gridRow.RowIndex + 1}行物料WLID为空"); return; } if (string.IsNullOrEmpty(_page.GetRowDataByKey(gridRow.RowIndex, "PCH"))) { _page.ShowMessage($"第{gridRow.RowIndex + 1}行批次号PCH为空"); return; } if (string.IsNullOrEmpty(_page.GetRowDataByKey(gridRow.RowIndex, "GYSID"))) { _page.ShowMessage($"第{gridRow.RowIndex + 1}行供应商GYSID为空"); return; } if (string.IsNullOrEmpty(_page.GetRowDataByKey(gridRow.RowIndex, "CKID"))) { _page.ShowMessage($"第{gridRow.RowIndex + 1}行仓库CKID为空"); return; } } }