Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding a usercontrol in a gridview
Message
De
22/08/2014 12:55:22
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Binding a usercontrol in a gridview
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01606284
Message ID:
01606284
Vues:
50
Hi All -

I thought I would save myself some time by creating a usercontrol for a commonly used dropdownlist, but it seems like it may be more trouble than its worth. The UC consists simply of a DDL, a SQLdatasource, and a required field validator. I can manage to use it OK when it is placed directly on a form and doesn't need to be bound to any existing data. However I also need to use it inside the edit template of a gridview. In this case I can't figure out how to bind it to the current selected value in the row. The gridview is populated via code behind. I am about ready to abandon this idea unless someone here can illustrate how this is done. (I posted on the MS Forums but so far have not received an answer.)

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform