在Grid中显示组的总数

时间:2013-08-05 08:33:00

标签: c# infragistics ultrawingrid

我在网格视图中显示金额列的总值,当我对网格视图进行分组时,它会显示每个组的总数但不显示所有组的总和总和。如何显示它?我在infragistics中使用超网格视图。

1 个答案:

答案 0 :(得分:3)

要显示所有组的摘要,您需要在具有GroupByRowsFooter的UltraGridOverride上设置SummaryDisplayArea,并为其设置位置。帮助中的Display Summary Footers for All GroupBy Rows主题中有一个示例。以下是帮助主题中的C#代码:

private void customersUltraGrid_InitializeLayout(object sender, 
  Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
{
    this.customersUltraGrid.DisplayLayout.Override.AllowRowSummaries = 
      AllowRowSummaries.True;
    this.customersUltraGrid.DisplayLayout.Override.SummaryDisplayArea =
      SummaryDisplayAreas.GroupByRowsFooter |
      SummaryDisplayAreas.TopFixed;
}
相关问题