Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TemplateField Label Binding/Display
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01174631
Message ID:
01174687
Vues:
10
Ted,

>How do I set the field to display different than the bound value field for an ItemTemplate label? Currently text is bound Bind("Sts_status") but I would like to display Sts_Desc?
>
>FYI, the template field is in a gridview and the EditItemTemplate is a DropDownlist bound to an objectDataSource.

Maybe I'm missing the point, but can't you just set the label's DataBindings so the Text property of the label is bound to Sts_Desc:
Bind("Sts_Desc")
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform