Hi.,
Before foreach disable paging using grdSearchresult.AllowPaging = false;
grdSearchresult.AllowPaging = false;
foreach (GridViewRow row in grdSearchresult.Rows)
{
}
grdSearchresult.AllowPaging = true;
and after foreach enable paging using grdSearchresult.AllowPaging = true;
or Save the datasource of this gridview into a hiddenfield or session and access.