Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Reusing DataSet/DataTable

Reply
Thread Tools

Reusing DataSet/DataTable

 
 
anon
Guest
Posts: n/a
 
      04-01-2004

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!
 
Reply With Quote
 
 
 
 
anon
Guest
Posts: n/a
 
      04-01-2004
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!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reusing HttpWebRequest.GetRequestStream Dan ASP .Net 4 06-01-2007 07:29 AM
reusing a class powerranger ASP .Net 2 08-11-2004 04:59 PM
Re: reusing codebehind files? Scott Allen ASP .Net 1 04-13-2004 12:54 PM
Reusing DataReader Thomas Scheiderich ASP .Net 11 04-13-2004 08:20 AM
reusing a bit of code? Rob Meade ASP .Net 4 01-30-2004 02:47 PM



Advertisments