For a combobox and a listbox same datatable given as a
datasource. Now problem is that whenever focus of listbox
changes selected value of combobox also get change or vice
versa. what to be done to avoid this. According to
requirement we cannot make different datasouce.

Answer Posted / upender kumar

There is no need to copy data into another data table.Just assign datatable as datasource to combobox and datatable.defaultview to listbox or vice versa.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain code compilation in c#.

526


Can we inherit private class in c#?

494


Where is the main method in c#?

530


Is c# a strongly-typed language?

547


Why References are stored on heap and variables on stack?

509






Can constructor be protected?

466


How does dictionary work in c#?

475


What is reference c#?

570


Do loops in c#?

503


What is difference between array and arraylist in c#?

448


What is the difference between overriding and overloading in systemverilog?

457


Differentiate between copy and default constructor.

572


What is the difference between ref and out parameters in c#?

460


How many keyword present in C# language ?

547


What's new in c#?

491