I
Iain
I've got a dialog with a tabbed control in. On some of the pages I've got
user controls whose (sub) controls are databound to an object (which
ultimately comes from a typed dataset).
All works fine EXCEPT that the data is not bound until the particular tab is
activated.
This is a problem if I want to change the data in just one of the panels in
the tab.
When I click OK, I run through the user controls and try and validate the
content. But as the data has not been bound from the underlying object, my
validation fails.
I note that the Load event (on the user control) is not called until the
first time the tab is activated.
So, how do I mimic clicking on the tab without changing focus ?
Thanks,
Iain
user controls whose (sub) controls are databound to an object (which
ultimately comes from a typed dataset).
All works fine EXCEPT that the data is not bound until the particular tab is
activated.
This is a problem if I want to change the data in just one of the panels in
the tab.
When I click OK, I run through the user controls and try and validate the
content. But as the data has not been bound from the underlying object, my
validation fails.
I note that the Load event (on the user control) is not called until the
first time the tab is activated.
So, how do I mimic clicking on the tab without changing focus ?
Thanks,
Iain