Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scoping
Message
De
15/09/2003 14:30:29
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00829033
Message ID:
00829106
Vues:
25
>>We have to stop meeting like this (don't tell Gary! <g>)<

ROFL ... ok, it'll be our secret. <g>

>>I was looking for something equivalent to VFP's Requery() method, to allow changing the values in the ArrayList, and causing the Items list to be updated to reflect the change, but the only way I could get that to work was to store a null to the DataSource property, then assign the "new" ArrayList and re-specify the DisplayMember and ValueMember properties. <

Well, that kinda makes sense, given that it appears to Fill the Combo's Items when you assign the DataSource and since your DataSource goes out of scope this would be the only way to "refill" it.

~~Bonnie


>
>>I have no clue, Steve, but I'll take a stab at it. My guess would be that the DataSource gets populated from the ArrayList by just adding the items to the Items collection of the Combo.
>
>That thought occurred to me, and I just figured out how to confirm that this is probably the case. Populated the list object, then changed a value of the ArrayList, and it did not change the values displayed in the list, this it appears that there is some kind of "disconnect" between the object specified in the DataSource and the control.
>
>I was looking for something equivalent to VFP's Requery() method, to allow changing the values in the ArrayList, and causing the Items list to be updated to reflect the change, but the only way I could get that to work was to store a null to the DataSource property, then assign the "new" ArrayList and re-specify the DisplayMember and ValueMember properties.
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform