foreach (GridViewRow row in GridView1.Rows) { string Name; string enabled; Name = row.Cells[2].Text ; enabled = row.Cells[3].Text ; } For i = 0 row.Cells.Count - 1
if (enabled=="0") {