Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My XML looks like this:

<Books>

<Position>
<Id>1</Id>
<Book title="xxx">yyy</Book>
<Book title="fff">ccc</Book>
<Book title="ggg">kkk</Book>
</Position>

<Position>
<Id>1</Id>
<Book title="xxx">yyy</Book>
<Book title="fff">ccc</Book>
<Book title="ggg">kkk</Book>
</Position>
.
.
.
</Books>

How Can i load XML - My datagridview should looks like:

column_1 - ID
column_2 - title
column_3 - yyy or ccc or kkk

etc....
Posted

1 solution

Check out this tutorial from MSDN: Walkthrough: Reading XML Data into a Dataset[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900