Hi, i need anyone help. it won't delete the rows, its only clear the rows. I attached sample output
for (int i = 0; i < table.Rows.Count; i++)
{
bool shouldDelete = true;
TableCell firstCell = table.Rows[i].Cells[0];
TableCell secondCell = table.Rows[i].Cells[1];
for (int p = 0; p < firstCell.Paragraphs.Count; p++)
{
if (string.IsNullOrEmpty(firstCell.Paragraphs[p].Text.Trim()) == false)
{
shouldDelete = false;
break;
}
}
if (shouldDelete)
{
table.Rows.RemoveAt(i);
}
}