Combobox selected index is problem

2 posts, 0 answers
  1. Ragupathi
    Ragupathi avatar
    41 posts
    Member since:
    Jul 2008

    Posted 30 Oct 2008 Link to this post

    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.
  2. Dimitar Kapitanov
    Dimitar Kapitanov avatar
    632 posts

    Posted 31 Oct 2008 Link to this post

    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:


    combo1.DataSource = NWindDataSet.Customers;


    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.
  3. DevCraft banner
Back to Top