By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 915 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Persisting DataSet through DataGrid

P: n/a
Daz
I want to make changes to a dataset that is bound to a datagrid.
Rather than store the dataset in session between page calls I've found
that I can cast the DataSource of the grid back to a DataSet and pass
this to the Update on the DataAdapter...

I've got this working OK with paging so it seems to fit what I want.
Is there any problem with doing this as I've seen many people talking
about how to persist datasets using session but this seems to give me
persistence for "free" through viewstate on the grid. I know that
there is overhead of passing the data back and forth from the client
but I'm doing this anyway as I'm displaying the data in the grid each
time.

Is my thinking correct?

--
Cheers
Daz
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
It's not entirely scalable which is why a dataset is recommended. It works
for you so use it.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Daz" <le*****************@hotmail.com> wrote in message
news:5l********************************@4ax.com...
I want to make changes to a dataset that is bound to a datagrid.
Rather than store the dataset in session between page calls I've found
that I can cast the DataSource of the grid back to a DataSet and pass
this to the Update on the DataAdapter...

I've got this working OK with paging so it seems to fit what I want.
Is there any problem with doing this as I've seen many people talking
about how to persist datasets using session but this seems to give me
persistence for "free" through viewstate on the grid. I know that
there is overhead of passing the data back and forth from the client
but I'm doing this anyway as I'm displaying the data in the grid each
time.

Is my thinking correct?

--
Cheers
Daz

Nov 18 '05 #2

P: n/a
Daz
On Sun, 9 May 2004 20:00:00 -0500, "Alvin Bruney [MVP]" <vapor at
steaming post office> wrote:
It's not entirely scalable which is why a dataset is recommended. It works
for you so use it.


OK thanks. So is storing the DataSet in session more scalable?
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.