This is a migrated thread and some comments may be shown as answers.

Conditional column source

2 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
wdudek
Top achievements
Rank 1
wdudek asked on 24 Apr 2008, 09:15 PM
I have a grid bound to a custom business object, for one of the columns I need to show obj.Value1 if it is there otherwise obj.Value2. I'm assuming I can use a template field to do this with an eval statement, but my knowledge of eval is pretty limited. Can someone either point me in the right direction for a site that will show me how to do this, or if it is simple enough just post an example. Or best yet would be both :)

Thanks,

Bill

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Apr 2008, 03:59 AM
Hi Bill,

Go through the following help document link.
Column types

Thanks
Princy.
0
wdudek
Top achievements
Rank 1
answered on 25 Apr 2008, 03:04 PM
Thanks for the reply, what I needed though was more a primer on how to use eval contidionally. I have since found this site which showed how to do it in the code behind http://www.pluralsight.com/blogs/fritz/archive/2005/12/16/17507.aspx.
Tags
Grid
Asked by
wdudek
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
wdudek
Top achievements
Rank 1
Share this question
or