I want to pass all the gridview value into another page I have one gridview in PatientDetails.aspx page and one button as below
@Nunners answer is ownsome, but can also try with following way:
on anothoer page's pageload event fetch grid like:
GridView GridView1 = (GridView)this.Page.PreviousPage.FindControl("GridView1");
All the technique is given below:
http://www.aspsnippets.com/Articles/Pass-Selected-Row-of-ASPNet-GridView-control-to-another-Page.aspx
Refer above doccument.