Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows From Databinding

Status
Not open for further replies.

schwarem

Programmer
Apr 18, 2002
159
0
0
US
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)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top