combobox binding problem - yet again !!

  • Thread starter Thread starter excelleinc.com
  • Start date Start date
E

excelleinc.com

Hi all,

This is very frustrated, writing a code and every few days wasting couple of
hours on obvious bugs in framework.

I'm trying to bind combobox to a msde sql table and works fine.

Then I try to bind "SelectedValue" to different column, it works fine first
time, displays the date and then second time it messes up all my bindings. I
know that it works since I already have similar thing on another tab page.

I don't know if it has something to do with Tab control, or something else
but I have already wasted too much time and would like some help.

I'm more than 100% sure that the code is good.

Thanks,

Vlado
 
Are you creating your bindings in the IDE at designtime or are you creating
them at runtime in code?

Try creating bindings manually ( runtime ) if you're not already.

If you need to refill the dataset that the combo is bound to then clear the
bindings after the fill and re-instate them again afterwards.

Also check that the table name hasn't changed the second time around. You
could try debugging using MyDataSet.WriteXML to view the contents of your
dataset the second time around. Then you can see if your dataset contains
tables with the correct name - or duplicate tables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top