Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
Ultragrid Summary leaking into child band
posted

 

This is using version 10.3 of the UltraGrid.

I have the following code creating a pair of summaries in a grid:

e.Layout.Bands[0].ColHeaderLines = 2;

e.Layout.Override.SummaryDisplayArea = SummaryDisplayAreas.TopFixed;

 if (!e.Layout.Bands[0].Summaries.Exists("Protected"))

 {

    e.Layout.Bands[0].Summaries.Add("Protected", Infragistics.Win.UltraWinGrid.SummaryType.Sum, e.Layout.Bands[0].Columns[strProtectedColumn], Infragistics.Win.UltraWinGrid.SummaryPosition.UseSummaryPositionColumn);

  e.Layout.Bands[0].Summaries["Protected"].DisplayFormat = "{0:######.00}";

  e.Layout.Bands[0].Summaries["Protected"].Appearance.TextHAlign = HAlign.Right;                             

} // if (!e.Layout.Bands[i].Summaries.Exists("Protected"))

This works perfectly, putting the summary at the top of the column.  However, In some cases, a row will have a child row and in this case the child row will also contain the summary from the parent row when expanded.  I'd like to remove that summary from the child row.

 

 

I've tried specifically calling ResetSummaries in the child Band but it has no effect:

e.Layout.Bands[1].ResetSummaries();

Thanks in advance.

Dan