Issue with data bound fields on Tab Control

A

Aparna Rege

Hi,

I am having trouble with a tab control. All the fields on the form are data
bound and are spread over two tabs of a tab control.

I have placed a Clear button with the code to clear all the fields on the
form.
When I click the Clear button, all the text boxes on the current tab get
cleared. But when I go to the other tab, I see data in all the fields. When
I come back to the previous tab, all the text boxes on this tab are now
filled with data.

After hitting the Clear button, if I click in any of the text boxes before
changing tab, these fields stay clear. But all others get filled with data
again when I come back to the tab.

Any help would be appreciated.

Thanks,

Aparna
 
G

Guest

I have resorted to using my own data binding methods. However, you might try
Me.BindingContext(Datasource).SuspendBinding, and
Me.BindingContext(Datasource).ResumeBinding.

This would assume that the datasources for each Tab are different.

(e-mail address removed)
 

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

Top