foreach(GridViewRow row in GridView1.Rows){
//if using TemplateField columns then you may need to use FindControl method
TextBox tb = (TextBox)row.FindControl("YourTextBoxID");
string someVariableName = tb.Text // get the value from TextBox
//Otherwise if you are just using BoundField columns then you get the data directly like this
string someVariableName = row.Cells[0].Text; //Where Cells is the column. Just changed the index of cells
}