Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding + Controls
Message
De
14/02/2008 14:22:54
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01292720
Message ID:
01292758
Vues:
25
Hi Derek,

Use a copy of the table intstead:
salesperson_combobox.DataSource = SalesPersonTable.Copy();
~~Bonnie



>Binding question:
>
>I have several textboxes bound to a customer DataTable fields (columns).
>
>I have a salesperson combobox bound to a field in the customer DataTable too.
>
>When I set the salesperson_combobox.DataSource = to the salesperson DataTable, the other textboxes are now controlled by position of this combobox (as if it's the navigation control).
>
>When I set salesperson_combobox.BindingContext = New BindingContext() - the combobox no longer controls the nagivation.
>
>How do I limit this default behavior without adding a new BindingContext?
>
>Thanks in advance.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform