I have a windows form that contains many fields that are bound to a datset in the designer. I am storing the results of the dataset in an XML file. Creating a new record and storing it out to the XML file file works fine. I then try to reload the record from the XML file when I want to edit the record, but it does not repopulate the form. The dataset is getting populated properly, I have been able to pull the values out in code, but it does not populate the form. I tried resetting the binding source, but that did not work. Below is my code for reading in the data to the datasource and resetting the bindingsource. What am I doing wrong repopulating the form?
Code:
Me.DsIncident.ReadXml(incidentFolder & "\IncidentData.xml")
Me.IncidentsBindingSource.ResetItem(0)