We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,453 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Accessing datasets

hi.
I am working on a project which keeps its data access, business logic and UI in separate projects of a solution.
Is there a way to access a strongly typed dataset in one project of a solution from another project of the same solution?
I need these to fill datagridviews in the UI.
Please answer soon. :S

2
Contributors
3
Replies
10 Hours
Discussion Span
2 Years Ago
Last Updated
4
Views
sandeepani
Newbie Poster
13 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Yes, just add a reference to the project containing the DataSet.
In the Add Reference dialog select the Projects tab and choose the project containing the DataSet.

nick.crane
Nearly a Posting Virtuoso
1,230 posts since Feb 2010
Reputation Points: 375
Solved Threads: 188
Skill Endorsements: 3

I have been trying it that way. But the dataset appears as a class containing some classes; I could not access them as tables. :(

sandeepani
Newbie Poster
13 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I could not access them as tables.

Not sure what you mean by this.

If you used the dataset designer to create you dataset then yes it contains many sub-classes typically one for each table, and one for each table row.
If you created the tables by draggin from a connected database then there are also dataadapter classes in a seperate namespace.

nick.crane
Nearly a Posting Virtuoso
1,230 posts since Feb 2010
Reputation Points: 375
Solved Threads: 188
Skill Endorsements: 3

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0803 seconds using 2.69MB