foreach (GridViewRow row in GridView5.Rows) { string accessType = row.Cells[1].Text; TextBox txtName = (TextBox)row.FindControl("TextBox4"); Response.Write(accessType+" "+txtName.Text); }