I'm trying to figure out how to dynamically add columns based on an enumeration property in my object.
Parent Object:
GroupResult Object:
I want the scores to show up on the same table rows as the rest of the data, but I can't seem to get it to work. When I try to use the dot notation like the docs say, I get blank cells. Any help would be great.
Parent Object:
public class GridDisplayItem |
{ |
public string companyName { get; set; } |
public string duns { get; set; } |
public bool? SmallBusiness { get; set; } |
public bool? SmallBusinessCertified { get; set; } |
public double SearchScoreOverall { get; set; } |
public double SurveyScoreOverall { get; set; } |
public IEnumerable<Model.GroupResult> SearchScores { get; set; } |
public IEnumerable<Model.GroupResult> SurveyScores { get; set; } |
} |
GroupResult Object:
public class GroupResult |
{ |
public string Name { get; set; } |
public string Category { get; set; } |
public double Score { get; set; } |
} |
I want the scores to show up on the same table rows as the rest of the data, but I can't seem to get it to work. When I try to use the dot notation like the docs say, I get blank cells. Any help would be great.