Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Value for Web Dropdownlist?
Message
De
17/09/2004 11:31:12
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00943169
Message ID:
00943430
Vues:
13
Kevin,

As a follow-up, the BindValueData does not fire after the default values are set so the control on the screen does not present the correct value. I'm not sure why, but after NewRow and default values are set and when binding, the DataBound property is set to True in the BindData method of the mmWebBindingStrategyList class which bypasses the call to BindValueData.

This is vesion 1.1 code so it may be fixed in 1.2. In past apps I just manually set the selectedvalue after adding a row.

I'm just trying to clean-up some code and eliminate work a rounds.

Terry



>Terry,
>
>>I have tried to set the value for a web dropdownlist control in the "HookSetDefaultValues" and can not get it to work. There seems to a problem in the binding!
>
>Have you set the control's BindingValueSource and BindingValueSourceMember properties as shown in the MM .NET Dev Guide topic "Data Binding Web Forms List Controls"?
>
>Regards,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform