A
Aleksey Timonin
Hi guys,
I have a comboBox binded to DataTable:
comboBox.DataSource = MyDataTable;
comboBox.ValueMember = "id";
comboBox.DisplayMember = "id";
Than in my code I need id = 3 to be selected in the comboBox. So I have a
code:
comboBox.SelectedValue = 3;
I don't have any event or any code after that may change the SelectedValue,
but in result I get wrong id shown in the comboBox!!!
Does anybody meet such a problem? How can I resolve it? What's wrong here?
Thanks a lot
Aleksey
I have a comboBox binded to DataTable:
comboBox.DataSource = MyDataTable;
comboBox.ValueMember = "id";
comboBox.DisplayMember = "id";
Than in my code I need id = 3 to be selected in the comboBox. So I have a
code:
comboBox.SelectedValue = 3;
I don't have any event or any code after that may change the SelectedValue,
but in result I get wrong id shown in the comboBox!!!
Does anybody meet such a problem? How can I resolve it? What's wrong here?
Thanks a lot
Aleksey