2013-08-05 15 views
0

我在網格視圖中顯示金額列的總價值,當我組網格視圖它顯示每個組的總數,但不顯示所有組總和的總計grad.How我可以顯示它?我在infragistics中使用超網格視圖。Displying Grand在網格中的組總數

回答

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; 
}