I have a combobox that has state abbreviations. It is filled from a dataset table, which is read in from an xml file.

The combo box populates just fine. I want the selected value and text to change when I load a record from an accounts table in the dataset.

Here's what I have:

cbb_State.DataBindings.Add("SelectedValue", data, "Current.State");

doesn't make the selection change. Any ideas why?

Apparently, it decided to start working. Looks like the line I have above does exactly what I thought it would.

Thanks anyway.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.