Suppose I am having one small XML Document,
and I wanted to show contents of XML Document in Datagridview,
So How can I............?
for example the XML document is :-
and these EmpId and EmpName is wanted to shown in shown in dataGrid.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nilanka DharmadasaPosted Dec 21, 2009, 7:49 AM
Finally I understood your requirement.
Check this code.
Please check 'DO YOU LIKE THIS ANSWER' checkbox if this helps you.
Nilanka DharmadasaPosted Dec 22, 2009, 12:06 AM
As this is a separate question, would you mind post this in a separate thread? So it is easier to both of us. And also, this requirement is not clear for me.
You always have to read column 3 and 4 or it varies?
With the answers for these questions, can you post this in a separate thread?
Ankit RathorePosted Dec 21, 2009, 11:54 PM
Suppose I am having very Big xml document in which lots of child nodes available in between I have to choose only 3 or 4 so is it possible .........to do that ..........?
I have to choose only 3 or 4 child node, So how can I ........?
Please Help me out ..........
Nilanka DharmadasaPosted Dec 21, 2009, 6:18 AM
Please do not forget to tick 'Do you like this answer' check box, if this helps you.
I have the solution for you. Check my code.
Ankit RathorePosted Dec 21, 2009, 5:59 AM
now I am facing a problem in which I have more then two child node then the output is not coming,
Here the code is meant for two child node only ..........
so please help me to give this below XML document ..............
Ankit RathorePosted Dec 21, 2009, 5:44 AM
The more EMPLOYEE ID also may happen .............
Kirtan PatelPosted Dec 19, 2009, 8:32 AM
Ankit RathorePosted Dec 19, 2009, 7:51 AM
I cant change the format
Kirtan PatelPosted Dec 19, 2009, 7:44 AM
I can do what you want but you need to correctly as your XML should like below to retrieve the information efficiently
your xml should be like in below format ..
if you want code for below format then let me know i will help you :)
will provide you very simpler code that you can understand :)
Ankit RathorePosted Dec 19, 2009, 12:12 AM
Thanks for the reply but I wanted to do in simple manner,
by using like DATASET then DATABIND then show it in DataGridView
Nilanka DharmadasaPosted Dec 18, 2009, 7:27 AM
Sorry. My previous answer is not in good foramt. So I uploaded the code.
Check it. (Change the file path to your xml file path.)
Please do not forget to check 'Do you like this answer' checkbox if it helps you.
Ankit RathorePosted Dec 18, 2009, 7:11 AM
please provide me another solutions.
Nilanka DharmadasaPosted Dec 18, 2009, 2:39 AM
I wrote a small application to read your xml file and display it in a datagridview.
Run this and check.
Please do not forget to check 'Do you like this answer' check box if this helps you.