Currently, I have this Datagridview displaying some XML data, the data is
<?xml version="1.0" encoding="utf-8" ?> <survey><floor location="Drill Floor"><sign location ="1" ref="OFS-FE01" size="180x180" Material="RPP" Quantity="2" Backingboard="No" /></floor><floor location="Top Deck"><sign location ="2" ref="OFS-FE07" size="180x180" Material="RPP" Quantity="2" Backingboard="Yes" /></floor></survey>
This is where I'm stuck as there are multiple floors and I need a way to display only a chosen floor location.
private void Form4_Load(object sender, EventArgs e) { DataSet dataSet = new DataSet(); dataSet.ReadXml(@"basicStorage.sws", XmlReadMode.Auto); datagridview.DataSource = dataSet.Tables[1].DataSet.Tables[1]; }
Above is how im loading the datagridview, It works but it gets all the places, while I only want to get it from a certain floor.