Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple data binding to a property
Message
 
 
À
17/09/2003 14:37:42
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00828163
Message ID:
00830070
Vues:
24
>yeah, I'm still struggling to get used to databinding in .Net, as you can read in Thread #825369. <s>

I see, I see, <s>

However, in looking at your original problem - getting the controls to update to reflect the change in the property - I have a very simple setup that isn't displaying this behavior, at least not entirely.

I have a Combo with an ArrayList as its DataSource (string DisplayMember and Int ValueMember), and a textbox on a form. Both the Combo and the TextBox are bound to the same form property. If I change the value in the combo and shift focus off of the combo, the texbox is updated to display the newly selected value. If I change the value in the TextBox and shift focus off of the textbox, the Combo updates to show the change.

Thus there is *some* event occuring when the property is being changed to trigger the "refresh" of the control.

That said, I also have a button whose eventhandler increments the value of the form property, and doing so does *not* cause either control to refresh.

I'm beginning to thing that there's a BindingContext working here...
>>-Steve->>

Steve Sawyer
Geeks and Gurus, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform