Tabcontrol and databinding

Mondeo

Centurion
Joined
Nov 10, 2006
Messages
128
Location
Sunny Lancashire
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
 
Back
Top