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
Ankit Rathore
NA
74
0
Selectd child nodes only show in data grid from XML document ....
Dec 23 2009 5:50 AM
Hi Guys,
I am very New in C# so please don't mind if I ask the silly question.........please cooperate me .
My problem is that suppose I am having very big XML file with lots of child nodes inside, and from them I have to select 2 or 3 child from the list,
What would be the approach to get data in datagrid.
Suppose I am having XML document is like:- in which I have to show only 3 child nodes like BoxName , BoxDesc, Location and Status only then how can we Show these in datagrid.
Please Help me ...........
<FileManager>
<BoxDetails>
<BoxName>101</BoxName>
<BoxDesc>Student Records</BoxDesc>
<Location>5th Floor, Self 1</Location>
<StorageDate>10/12/2008</StorageDate>
<StorageUntil>10/12/2009</StorageUntil>
<Status>Destroyed</Status>
<AvailableFolder>Bangalore- 2009 Marksheets</AvailableFolder>
</BoxDetails>
<BoxDetails>
<BoxName>201</BoxName>
<BoxDesc>College Records</BoxDesc>
<Location>6th Floor, Self 1</Location>
<StorageDate>10/12/2007</StorageDate>
<StorageUntil>10/12/2009</StorageUntil>
<Status>Checked</Status>
<AvailableFolder>BHOPAL- 2009 Marksheets</AvailableFolder>
</BoxDetails>
<BoxDetails>
<BoxName>301</BoxName>
<BoxDesc>PO Records</BoxDesc>
<Location>5th Floor, Self 1</Location>
<StorageDate>10/12/2006</StorageDate>
<StorageUntil>10/12/2007</StorageUntil>
<Status>Checked</Status>
<AvailableFolder>Bangalore- 2009 SOAP</AvailableFolder>
</BoxDetails>
<BoxDetails>
<BoxName>401</BoxName>
<BoxDesc>PR Records</BoxDesc>
<Location>5th Floor, Self 1</Location>
<StorageDate>10/04/2008</StorageDate>
<StorageUntil>10/08/2008</StorageUntil>
<Status>Destroyed</Status>
<AvailableFolder>Bangalore- 2009 Soap</AvailableFolder>
</BoxDetails>
</FileManager>
Reply
Answers (
8
)
contains method
Calling Form1_Paint method