>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