Persisting DataSet through DataGrid

Discussion in 'ASP .Net' started by Daz, May 7, 2004.

  1. Daz

    Daz Guest

    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
     
    Daz, May 7, 2004
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    >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
     
    Alvin Bruney [MVP], May 10, 2004
    #2
    1. Advertising

  3. Daz

    Daz Guest

    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?
     
    Daz, May 11, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric Sabine

    RFC: persisting a dataset

    Eric Sabine, Jul 28, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    350
    Eric Sabine
    Jul 29, 2004
  2. =?Utf-8?B?RGF2ZQ==?=

    Persisting a dataset between event handlers

    =?Utf-8?B?RGF2ZQ==?=, Aug 21, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    443
    Jan Peter Stotz
    Aug 22, 2005
  3. john_teague

    persisting collection in a custom datagrid

    john_teague, Dec 6, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    400
    john_teague
    Dec 6, 2005
  4. john_teague

    persisting collection in a custom datagrid

    john_teague, Dec 6, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    337
    john_teague
    Dec 6, 2005
  5. Persisting a collection property in a custom datagrid

    , Dec 5, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    111
Loading...

Share This Page