Question : Is it possible to databind within the UI from a background thread?

I think that the answer is going to be no, but just in case...

I am loading filtering data in a background thread which is used to populate a combobox that is used to filter some alternative results.  I have to call a method on the UI thread to create the databindings which creates a delay and requires me to display an hourglass while it is bound.

I would like to get rid of this delay and do the binding on the background thread, leaving only activation of the combo (setting its Enabled property to true) to be handled by the UI on completion.

Is this possible, and if so how?

Chris Bray

Answer : Is it possible to databind within the UI from a background thread?

Hi Chris;

To your statement, "Is this possible, and if so how?", The short answer is no. It is illegal to manipulate the controls of a UI from a different thread then the one it was created from.

Sorry;
Fernando  
Random Solutions  
 
programming4us programming4us