Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to Convert IDataReader to DataSetHow to Convert IDataReader to DataSet
Previous
 
Next
New Post
10/2/2006 4:10 AM
 
Hi All,
I want to Convert IDataReader object to DataSet (TypeCasting) . Have anyone idea about it

Thanks.
 
New Post
10/3/2006 9:40 PM
 
Can you provide a few more details?  What are you trying to do?  Why not simply return the data into a dataset first?  There is no simple conversion of a dr into a ds without doing messy programming.  AFAIK you would have to loop the dr and add each field to a DataRow which you then add to a DataTable inside the dataset.  Or some craziness like that.  Awful really.  To be avoided.
 
New Post
10/4/2006 12:56 AM
 
i want to show data in datagrid with paging,but it throws an exception that it does not implement Idatareader,so i think that first convert DataReader data in to dataset and then use paging.
 
New Post
10/4/2006 12:08 PM
 

I don't really undertand what you are trying to do.  But to make shaun's point here is a link to the code to do the conversion from datareader to dataset

http://geekswithblogs.net/bjones/archive/2006/03/19/72764.aspx

messy.

mj


Michael Jackson
Brillnat.com
Custom module development
Database access tokenized HTML modules
 
New Post
10/4/2006 12:18 PM
 

 

Here's another: http://www.tulsadnug.org/DesktopDefault.aspx?tabid=23&frmView=ShowPost&PostID=501

Hard to believe I posted that over three years ago, how time flies :)

Here's something simular if you are working with XML:

http://www.tulsadnug.org/DesktopDefault.aspx?tabid=23&frmView=ShowPost&PostID=508

 


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to Convert IDataReader to DataSetHow to Convert IDataReader to DataSet


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out