Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've got a tabcontrol within a tabcontrol, it has 4 tabs which all contain controls that i'm databinding to, for example

 

chkLive.Databindings.Add("checked",currentVehicle,"isLive")

 

This all works fine apart from the databinding doesn't seem to happen until you click on each individual tab.

 

I have a button to do something based on the value of one of the databound checkboxes, but its value is always false unless I click on that individual tab first, in which case it changes to true.

 

I've tried this to solve the problem

 

' workaround for databinding to child tabs bug

For Each tab As TabPage In tabControlMarketingDetails.TabPages

tabControlMarketingDetails.SelectTab(tab)

Next

tabControlMarketingDetails.SelectTab(0)

 

But its still the same.

 

Whats the best way around this?

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...