Avatar

Level 10

In the form, you had created a data connection to the form with the XML.

Then you had also added the XML data file to the Preview property. That means when you Preview your form in the Designer, the data from XML will be loaded to the form based on the bindings done to the fields.

In your case, you wanted the dropdown to be filled with values from the XML. So I asked you to place the code in the initialize event of the dropdown, so it will read the XML data and add values to the dropdown.

untitled.JPG

Hope this helps.

Thanks

Srini