TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
satwika g
NA
5
0
Problem updating the data tables in dataset in windows console application vs 2005
Jun 22 2010 10:06 AM
Hi,
I am new to .NET.I am developing a console application.I am using multiple class files to store different methods, among those one is a file with all database connections & methods. In this class file I have declared and initialized a public dataset. I am trying to insert 3 tables into this dataset. I am calling database methods from another class file.I am being able to do everything.But when I try to read the data tables of this dataset from Main Program. Its showing only first table.It doesn't show up the remaining two table names.Is it because of calling that class from another class file? I would be able to read the remaining two tables from the class where I had called those methods.
Ex: Let's Say I have two class files dbconn, validate and my main program Program
I have declared dataset in dbconn and wrote some methods to read data from database. I have called those methods from validate class and Program by creating instance. In my Main Program I have called dbconn and created one data table and from validate created two data tables.Now when I try to access the dataset tables in Main program, it is showing up only one data table which I have created from this program. Similarly validate doesn't show up the first data table.
But I need to access all the 3 data tables from Main Program.Please let me know the solution.
Thanks,
Satwika
Reply
Answers (
1
)
Access 2007 attachment, how to access by coding in c#????
validation for datasource controls