thank you
When we make aggregate columns by loop,it throw an exception:
System.ArgumentException: An item with the same key has already been added. Key: S9.Pressure.Value
Is there a way to check if the key exists in the collection?
Or can we make a separate component for aggregate column?
<GridAggregates>
<GridAggregate>
<GridAggregateColumns>
@if (Aggerate != null)
{
foreach (var col in Aggerate.Columns)
{
var pressure = "S" + col.Key.ToString() + ".Pressure.Value";
<GridAggregateColumn Field="@pressure" Type="AggregateType.Average">
</GridAggregateColumn>
}
}
}
</GridAggregateColumns>
</GridAggregate>
</GridAggregates>