I am using epplus and working on validating a spreadsheet. If any row/first column has no data then the row is invalid. I want to move to the next row. How do I test this first column in a row to make sure it is not empty? I know I have to use a break to get out of the loop.
for (int i = start.Row; i <= end.Row; i++)
{
for (int j = start.Column; j <= end.Column; j++)
{
//add the cell data to the list
if (String.IsNullOrEmpty(workSheet.Cells[i, j].Text.ToString()))
errors.Add($"Worksheet {workSheet.Name}, Row {i}, Column {j} does not contain data.");
}
}