This is a migrated thread and some comments may be shown as answers.
Can multiple properties be used from a bound column format
0 Answers 22 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alan Wong
Top achievements
Rank 1
Alan Wong asked on 24 Jun 2010, 12:43 PM
For example, I have a bound column with a format and I need to reference the bound value (id) and an additional property (state) to determine how to format the cell data.

columns.Bound(m => m.Id).Format((m.state == "Show") ? "{0}" : ""));

In this case if the property "state" contains "Show" then I want the Id to be visible. If not, then the cell will contain and empty string.

Is it possible to reference another property of column in this way?

Tags
Grid
Asked by
Alan Wong
Top achievements
Rank 1
Share this question
or