// gv - GridView for (int i = 0; i < gv.Rows.Count; i++) { for (int j = 0; j < gv.Rows[i].Cells.Count; j++) { gv.Rows[i].Cells[j].Text } }
Foreach
foreach (GridViewRow row in grid.Rows) { foreach (TableCell cell in row.Cells) { string cellValue = cell.Text.ToString(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)