how to pass a whole gridview to another page?

  • Thread starter Thread starter Carlos
  • Start date Start date
C

Carlos

Hi all,

I would like to know what is the most efficient way to redirect a gridview
containing data to another page. It is kind of confirming an order which
just
needs to be re-displayed.

Can anyone help?

Thanks in advance,

Carlos.
 
Peter,

thank you very much for your help.
would it be too much to ask if can you explain items 2), and 3) in more
detail?
I am not sure how to manage the dataset in a session.

Thanks again,

Carlos.
 
Thank you very much Peter. I do really appreciate it. I'll try it ASAP.

Thanks again,

Carlos.

Peter Bromberg said:
MyGridView.DataSource=myDataset;
Session["myDataset"]=myDataSet;

in the receiving page:

DataSet myDataSet = (Dataset)Session["myDataset"];
MyOtherGridView.DataSource=myDataSet;
MyOtherGridView.DataBind();

That's C#. Do you need Vb.net too?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




Carlos said:
Peter,

thank you very much for your help.
would it be too much to ask if can you explain items 2), and 3) in more
detail?
I am not sure how to manage the dataset in a session.

Thanks again,

Carlos.

message
 
Back
Top