回复 1楼sygmonitor的帖子
请问您是想以组为单位计算 “同比人数增长(%)”的平均值吧?可以通过 DataGridAggregateAvg类实现平均值计算,参考代码:
- private void grid_AutoGeneratingColumn(object sender, C1.Silverlight.DataGrid.DataGridAutoGeneratingColumnEventArgs e)
- {
- Common.HandleColumnAutoGeneration(e);
- if (e.Property.Name == "StandardCost")
- {
- DataGridAggregate.SetAggregateFunctions(e.Column, new DataGridAggregatesCollection { new DataGridAggregateAvg() });
- }
- }
复制代码 |