Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine the field a textbox is bound to
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
How to determine the field a textbox is bound to
Versions des environnements
Environment:
VB 8.0
OS:
Vista
Network:
Windows XP
Database:
Jet/Access Engine
Application:
Desktop
Divers
Thread ID:
01487443
Message ID:
01487443
Vues:
118
I have found that
Me.DataBindings.Item(0).BindingMemberInfo.BindingField
gives me the name of the field a control is bound to.
Dim o As DataColumn = cols(Me.DataBindings.Item(0).BindingMemberInfo.BindingField)
gets me the column, or the field that I am looking for.

cols is passed to the method from the form's dataset.datatable (I guess).

Is there a way for a textbox to let it's findform produce these (dataset.datatable).cols?

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

Click here to load this message in the networking platform