Click here to Skip to main content
15,905,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Let say i have this xml data that pull from web service. Now i wanted to Filter out and bind into the data Gridview. For Example

<row num="1"> <system_id>SSLM041</system_id><equipment_id>24071</equipment_id>                <serial_no>US40230159</serial_no></row>   <br />
<br />
<row num="2">  <system_id>SSLM041</system_id><equipment_id>PA8394</equipment_id>                <serial_no>MY44061699</serial_no></row>



This is two example data only it will more than that, anyone help me pls?
Posted
Updated 22-Sep-15 23:09pm
v2

1 solution

Hi,

You can convert the XML data into a datatable and from that datatable you can able to get your datagridview assigned easily.

Hope this will give you a lead to get your problem solved. For XML to DataTable you can get the code from google. The only thing you need to take care is you should select the proper element for your DataTable to be filled from the XML data.

Thanks,
Sisir Patro
 
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