Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

Issue with data bound fields on Tab Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aparna Rege - 25 Oct 2004 15:34 GMT
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
Charlie - 26 Oct 2004 09:17 GMT
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.

cfarrier@charlesfarriersoftware.com

> Hi,
>
[quoted text clipped - 17 lines]
>
> Aparna

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.