Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Read in two XML files and display in dataGrid object
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
farahfaisal
19y
2k
1
Reply
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.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Read and Write to Tabbulated text
getting info out of text