Is it possible to do aggregates in a ListView's GroupHeaderTemplate?
Consider a POCO like:
public class ProductSales
{
public string Category {get; set;}
public string ProductName {get;set;}
public int QtySold {get;set;}
public decimal SoldAmt {get;set;}
}
And then you want to show a list of those items in a ListView, grouped by Category. You might want to include a sum of both the QtySold and SoldAmt properties in the group header, and maybe even a count of the ProductName values.
Is this possible?
Thanks -
Erik