comboBox Databinding

W

WillieJoe

Hi,

I have several controls on a TabControl - one being a
ComboBox (DropDown) with a list of Items hard coded with
the .add method.

I have the "SelectedItem" property of the ComboBox
Databound to a element in a Datatable.

My problem is when I select an item in the combobox, the
Datatable isn't updated until I select another control on
the TabControl - which might not happen!!

My question is how do I get the Databinding to take effect
as soon as the user selects an item from the ComboBox?

Thanks again for everything,
Willie
 
A

Alex Feinman [MVP]

Try instead using the DataTable (or a DataView based on it) as the combobox
datasource and bind that element via ValueMember
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top