This project is read-only.

Sorting using another property from object

Feb 20, 2014 at 5:02 PM

Basically i have this object
public class Product{
      public decimal Price {get;set;}
      public decimal CalculatedPrice {get;set;}
I want to show only the column Price in the Grid, but when it do the sort, i would like it to sort base on the CalculatedPrice property.

Is there a way of doing that ?

Feb 22, 2014 at 11:01 AM
Hi. you can apply column to CalculatedPrice property but render Price property: