ComboBox SelectedIndex is set to 0

  • Thread starter Thread starter Albert
  • Start date Start date
A

Albert

Hello guys,
I have a TabControl in a Windows Form. In one of the tabs I have a DataGrid
with Items, and in another one some controls that let the user add a new
item. In this second tab there's a ComboBox for selecting the type of the
item. When the user select one item in the ComboBox some other controls get
the values based on the selected item.
The problem is that when the user change from one tab to the other the
SelectedIndexChanged event of the ComboBox fires and the SelectedIndex has a
value of 0.
Any help is appreciated,
Thanx, Albert
 
Hello,

Albert said:
The problem is that when the user change from one tab
to the other the SelectedIndexChanged event of the ComboBox
fires and the SelectedIndex has a value of 0.

That's a known problem with databound comboboxes on tabpages.
 
Back
Top