Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

I am creating one windows application, that reads an XML file, that XML file contains multiple tables data and it is very large file.

The problem is when i read the XML file by
C#
dataset.ReadXml()
method, the dataset is filling only first two tables, the other tables data not reading. When I check the dataset in text visualizer. the first two tables data is displaying properly, but when i check tables third onwards it is showing 'X' cross lines in visualizer. I think the problem is because of the huge data.

Can help anyone...
Posted
Updated 29-Aug-12 22:56pm
v2
Comments
Legor 30-Aug-12 4:58am    
Maybe there is an error in the xml file? Like missing Tags or syntax errors?
rajshreegiri 30-Aug-12 7:04am    
Hey for every table in your XML file you can use...
datagridview.datasource = ds.Tables[0]; for 1st table...


for (K = 0; K <= ds.Tables.Count - 1; K++)
{......
}

1 solution

Hi,
I am also working with XML files.....
In my project I am reading XML files as you mentioned...
dataset.ReadXml();
in my XML files there are many tables....
but tables are present inside tables...
can you help me to read that all tables into one datagridview....
 
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