Reusing DataSet/DataTable

Discussion in 'ASP .Net' started by anon, Apr 1, 2004.

  1. anon

    anon Guest

    Hello All,
    I have a Datagrid that gets populated using a different query ,
    depending on some user selections....when i do paging for the grid, i
    will have to chk for those selection again n pass the query to the
    function that populates the grid....i was thinking of a workaround or
    something liek this....in the OnPageIndexChanged event, if i first get
    the datasource of the datagrid, store that as a dataset, then after the
    e.NewPageIndex, give the dataset or datatable as the datasource for the
    datagrid...
    Is this possible?Any sample code would be helpful.

    Thanks for your time.


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    anon, Apr 1, 2004
    #1
    1. Advertising

  2. anon

    anon Guest

    I sort of resolved this issue by saving the datasource in session..but i
    understand this is not a good design for large data...any other solution
    to this?
    Thanks



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    anon, Apr 1, 2004
    #2
    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. Nedu N
    Replies:
    1
    Views:
    1,773
    Chris Taylor
    Oct 31, 2003
  2. J. Babe
    Replies:
    1
    Views:
    8,313
    Kevin Spencer
    Aug 15, 2003
  3. Nedu N
    Replies:
    2
    Views:
    2,140
  4. Fredrik Rodin

    Sort a datatable and create a new datatable

    Fredrik Rodin, Feb 16, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    9,027
    paul.mariotti
    Sep 28, 2007
  5. Nedu N
    Replies:
    2
    Views:
    208
    Jacob Yang [MSFT]
    Oct 31, 2003
Loading...

Share This Page