1,105,585 Community Members

Accessing datasets

Member Avatar
sandeepani
Newbie Poster
13 posts since Nov 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
nick.crane
Veteran Poster
1,195 posts since Feb 2010
Reputation Points: 342 [?]
Q&As Helped to Solve: 190 [?]
Skill Endorsements: 5 [?]
 
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.

Member Avatar
sandeepani
Newbie Poster
13 posts since Nov 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
nick.crane
Veteran Poster
1,195 posts since Feb 2010
Reputation Points: 342 [?]
Q&As Helped to Solve: 190 [?]
Skill Endorsements: 5 [?]
 
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.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: