Problems with databinding

  • Thread starter Thread starter Vanessa
  • Start date Start date
V

Vanessa

Hi all!

I have a tab control with 2 tabs. All tabs have fields that are databinding
to a unique binding source. The problem is that if I don't access the second
tab, it didn't work. After access it, all works fine.

For example, I have the following tabs:

Tab 1
nameTextBox
codeTextBox
addressTextBox

Tab 2
groupTextBox
birthdayTextBox

I have a Binding Source and when it is assigned, the fields on Tab 2 is not
updated. If I access Tab 2, all works fine after this.

Is there a way to start binding in all tabs?

Thank you
Vanessa
 
Hi Vanessa,
I have the same problem. I don't know if there's a technical solution but I
usually get around it by programmatically changing tabs after assigning the
binding source.
 
Hmm, i just can't see where the problem is.
If you want to edit/view the values assigned to the textboxes of tab2
you have to activate tab2. Otherwise you do not need these values.
 
If you perform code that assumes that the databinding has been performed, it
will not work until the other tab pages has been activated. That is (I
think) the problem.
 

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