Posts

Showing posts with the label datagridview

Populate Datagrid From xml file

Populate Datagrid From xml file I've looked at many answers on this topic but was unable to find the answer to my question, so apologies in advance if I missed this answer somewhere else. I would like to add attributes of a particular object id to a datagrid. The routine that I have developed unfortunately adds all attributes to the datagrid and not just the attributes of the selected object. I have the following xml file structure: <?xml version="1.0" encoding="UTF-8"?> <project> <configuration> <general> <verbose>True</verbose> </general> <architecture> <site reference="Demo Site Reference" type="WTP" id="0001" /> <rtu dnp="77" ip="10.10.10.77" type="Schneider Electric SCADAPack 442" /> <radio ip="10.10.10.76" /> <hmi ip="10.10.10.75" /> </architecture> ...