Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF equivalent in a datagridview
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01354198
Message ID:
01354257
Vues:
14
>I'm trying to use an equivalent to a VFP IIF statement in a column of a grid but can't get it to work. I put the following code in a text box and it worked correctly.
>(bool)oOfficeNote.Entity.HighPriority ? "YES" : "NO"
>
>When I put the same code in the DataPropertyName, the column comes up blank. Is there a way to do this without having to create a separate table or dataset with a computed field based on that expression?

I don't know of a way to do this--a calculated column may be your best bet.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform