Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tabpagecontrol, binding, from refresh misery
Message
 
À
05/11/2011 10:54:45
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
OS:
Vista
Network:
Windows XP
Database:
Jet/Access Engine
Application:
Desktop
Divers
Thread ID:
01527103
Message ID:
01528176
Vues:
39
Dear Bonnie,

Thanks for caring.

Basically I think my problem is solved when I kind of "activate the pages" in the build event of the form. I haven't checked it yet, but I suspect that the pages "as components" may not be built until
they are activated (read shown, or selected).

Might also be a form generator issue.

It may also be the fact that I added the tabcontrol late in the coding of the the form and moved bound controls to other pages. It's possible that in this way I somehow confused the form generator.

I think that checking the code generated by the form generator might disclose what exactly is going on, but that takes time and courage :).

I do .EndEdit().

The "problem" was that to my surprise, in "update" mode, i.e. the mode whereby the system fetches the record(s) and presents them to the user via the bound controls, those controls that are on pages that are never activated (shown really), are not refreshed.

As I said, thanks for caring and kind regards,

Marc



>Sorry for not replying sooner, Marc. I've been away from the UT for a couple of days.What exactly is not working? You haven't really said ... you've simply said that you needed to refresh the Tab pages, but not *why* you needed to. I assumed it was because the data that got changed on the various Tab pages wasn't being "noticed" at Save time and that's why I mentioned the binding. I also should have mentioned that perhaps you need to include an .EndEdit(). But, I still do not have a clear idea of what exactly your problem is ...
>
>~~Bonnie
>
>
>>Dear Bonnie,
>>
>>What you explain seems to be what you would expect, but somehow it does not seem to work in this way.
>>
>>What does help (I think, because I have not tested this fully yet), is to call this
>>
>>
>>       For i As Integer = 1 To Me.TpgBase1.TabPages.Count
>>            Me.TpgBase1.SelectTab(i - 1)
>>       Next
>>
>>
>>in the load event of the form.
>>
>>Could it be that the binding logic needs somehow to be activated?
>>
>>I expect (hope?) that I can "baseclass" this and forget about it.
>>
>>Kind regards,
>>
>>Marc
>>

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform