I am opening an excel file like this:
Excel.Application xlApp; Excel.Workbook xlWorkBook; Excel.Worksheet xlWorkSheet; Excel.Range range; string str; int rC
for (int i = dt.Rows.Count - 1; i >= 0; i--) { if (dt.Rows[i][1].ToString() == "SomeThing") { dt.Rows.RemoveAt(i); } }