/// /// 주어진 행이 비어있는지 체크한다. /// /// 행번호(zero-based) /// 주어진 행이 비어있으면 참, 그렇지않으면 거짓 bool IsNullOrEmpty(DataGridViewRow row) { try { foreach (DataGridViewCell cell in row.Cells) { string cellvalue = cell.Value as string; if (cellvalue != null && !string.IsNullOrEmpty(cellvalue.Trim())) return false; } } catch (Exception ex) { KLog.Write(ex.ToString()); } return true; }