S
Stewart Berman
I have an application that populates a DataGridView control with an XML. file.
1. How do I set up the process so the user initally sees just the headers -- no records.
I have the DataGridView properties set to allow the user to edit data but not add or delete (which
will be down in the program). However when I execute the ReadXML method one emtpy row is shown.
The starter XML contains:
<?xml version="1.0" encoding="utf-8"?>
<DataSet1 xmlns="http://www.tempuri.org/DataSet1.xsd">
<!--SABBackgroundSlideShow Image Conrol-->
<Images>
<Sequence></Sequence>
<Name></Name>
<Location></Location>
<Style></Style>
<Duration></Duration>
</Images>
</DataSet1>
If I delete the entries under <Images> then ReadXML throws an error.
2. How do I map a row selected in the DataGridView control to the DataSet so I can delete it?
1. How do I set up the process so the user initally sees just the headers -- no records.
I have the DataGridView properties set to allow the user to edit data but not add or delete (which
will be down in the program). However when I execute the ReadXML method one emtpy row is shown.
The starter XML contains:
<?xml version="1.0" encoding="utf-8"?>
<DataSet1 xmlns="http://www.tempuri.org/DataSet1.xsd">
<!--SABBackgroundSlideShow Image Conrol-->
<Images>
<Sequence></Sequence>
<Name></Name>
<Location></Location>
<Style></Style>
<Duration></Duration>
</Images>
</DataSet1>
If I delete the entries under <Images> then ReadXML throws an error.
2. How do I map a row selected in the DataGridView control to the DataSet so I can delete it?