Hello,
I just wondering if there is anyway I can achieve this in the most simple way:
I have two class:
public class BillingRate
{
public int BillPeriod { get; set; }
public int ConsumerTypeId { get; set; }
public ConsumerType ConsumerType { get; set; } // a ConsumerType class
public decimal Rate { get; set; }
}
public class ConsumerType
{
public int Id { get; set; }
public string Code { get; set; }
public string Description { get; set; }
}
Here's the thing, I already display the BillPeriod and Rates on the SfDatagrid by simply declaring the name of the attribute itself on SfDatagrid>Columns>MappingName. The problem is, is there anyway to display also the ConsumerType.Description on the SfDatagrid column list since it was also a part of BillingRates class?