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

Give an example of removing an element from the queue?

687


Is java better than c#?

689


What is the .NET collection class that allows an element to be accessed using a unique key?

845


What is the purpose of ienumerable in c#?

688


What is managed code?

730


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

701


What is the difference between mobile application and desktop application?

663


What is session variable in c#?

775


How can i Spawn a Thread

691


Explain about Oops concept

731


How big is an int in c#?

733


What is string [] args in c#?

709


What is namespace c#?

680


Why is it called c sharp?

711


How do I move from one form to another in c#?

651