You can loop through the rows of a gridview by following code
foreach (GridViewRow grvRow in GridView1.Rows)
{
//grvRow.Cells[0].Text
}
You can use the commented line to get the data inside each colum if you are using BindColumns. If there are any TemplateColumns you need to use the FindControl method.