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
farahfaisal
NA
1
0
Read in two XML files and display in dataGrid object
Apr 10 2005 5:16 PM
Hi, I'm really new at coding with C#, so I was wondering if someone can help me with this. I was wondering if it is possible for me to read in two different XML files and display them in a DataGrid object without having to manually parse through the nodes. The two files are unrelated to each other, but some information can be displayed in the same column. assignments.xml:
my title
my subject
Feb
3
my instructions
my title2
my subject2
May
4
poopy head
events.xml:
Recital
June
4
be there on time
Currently I have this in my code to read in the assignments.xml file into a DataSet object and bind it to a DataGrid: DataSet dsLocker = new DataSet("Locker"); dsLocker.ReadXml("assignments.xml"); dataGrid1.DataSource = dsLocker.Tables[0]; I'm coding for a pocketPC application using the .NET Compact Framework. If I use dsLocker.ReadXml on different filenames, would it read the files into different tables? If I read the files into different datasets instead, can I merge them so that I can display the info in one table? Thank you in advance for the help, I really appreciate it.
Reply
Answers (
1
)
writeprocessmemory problems
getting info out of text