This is a migrated thread and some comments may be shown as answers.

Combobox selected index is problem

1 Answer 68 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ragupathi
Top achievements
Rank 1
Ragupathi asked on 31 Oct 2008, 04:03 AM
I am setting the same datasource for two comboboxes. If I selected any value in one combo box the same value is reflected in other combobox also.can anyone help to fix this issue.

Thank you.
Raghu

1 Answer, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 31 Oct 2008, 07:49 AM
Hi Ragupathi,
This is the expected behavior, the way binding mechanism works in Windows Forms. To decouple the synchronization, you have to address the data sources, so that their object references differ, example:

[combobox1]

combo1.DataSource = NWindDataSet.Customers;

[combobox2]

DataTable tbl = NWindDataSet.Tables[1];
combo1.DataSource =  tbl;



This will probably solve your problem.


Sincerely yours,
Dimitar Kapitanov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Ragupathi
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Share this question
or