This question is locked. New answers and comments are not allowed.
Hi All,
I have the following code:
When I run the code, it errors on my second column.Bound where I'm trying to display a Sum amount.
The error is : Bound Columns require a field or property access expression.
Covers is an IEnumerable of a class declared on my viewModel.
I have the following code:
columns.Bound(r => r.Description).Title("Description").Encoded(false); columns.Bound(r => r.Covers.Sum(m => m.SumInsured)).Title("Sum Insured"); columns.Bound(r => r.Covers.Sum(m => m.Excess)).Title("Excess"); columns.Bound(r => r.Covers.Sum(m => m.IncreasedXSDiscount)).Title("Increased XS Discount"); columns.Bound(r => r.Covers.Sum(m => m.Rate)).Title("Rate"); columns.Bound(r => r.TechnicalPrice).Title("Technical Price");The error is : Bound Columns require a field or property access expression.
Covers is an IEnumerable of a class declared on my viewModel.