Hi.
I am wondering if it is possible to add PivotFields dynamically to a PivotGrid without using CodeBehind. Either from a dynamic expando object or from a list of dynamic properties.
My current implementation does like the following in CodeBehind:
if (HasDimensionType(debitRows, DimensionType.employee_id))
{
this.PivotGrid.PivotFields.Add(new PivotItem
{
FieldMappingName = "EmployeeIdDimensionText",
FieldHeader = "Anställningsnummer",
TotalHeader = "Total"
});
}