Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello everybody,
I am pretty new to datagridviews/datasets/etc. I do know xml however. My problem is this, I am currently trying to get my datagridview to display all the data inside an xml file. After about 8 hours of looking throughout google, I am more confused then ever. The common solution on alot of sites seemed to say I needed to run my xml file through a dataset.

What I have done so far is connected my dataset to my datagridview (that was almost effortless) as the datasource, but thats where I have hit a wall. I don't understand why it needs to be this complicated to pull data from an xml file with the same amount of nodes as a datagridview has columns....It's a simple table. Maybe somebody can explain this to me where I'm not going to be completely lost - either that or Im just majorly over thinking this....Either way I appreciate the help. So far all the tutorials I have done have done nothing but give me a mountain of errors or I have tried to make them work for the datagridview even though the tutorial was for a listview.

Thanks again guys and gals.
Posted

read this[^]. It has a lovely example how to have xml into a dataset wich is used as datasource for a datagrid component.

read section Create Project and Add Code
 
Share this answer
 
I did stumble on that one already, but its in C# - so I have to transfer it over to c++ in an effort to get rid of all the compile errors and make it actually work.
 
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