Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF equivalent in a datagridview
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01354198
Message ID:
01354257
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform