I’m working on the datagridview. In which i have to show the values of the column from the xml to the grid view column.
I have xml like this:-
Also i have a grid view which have two column “ID” and “NAME”,I want to populate the values from the xml to grid view .Can anyone help?
<employee>
<empdetails id="1" name="sam"/>
<empdetails id="2" name="robin"/>
<empdetails id="3" name="victor"/>
</employee>
You can read xml to DataSet and pass DataSet
empdetailstable to DataGridView like this: