How can I show a summary in the winnings footer and not show Sigma in the header?

I am using Infragistics UltraWinGrid and want to be able to display the sum of several columns. I got this working by resolving strings. However, I want them to be able to see the amount, and not all these other crazy options that come with this little sigma in the header. How can I get rid of this by keeping the amounts below?

+3
source share
2 answers

You must have the DisplayLayout.Override.AllowRowSummaries property this way:

DisplayLayout.Override.AllowRowSummaries = AllowRowSummaries.Default;

then use code like this to create a summary (You need to check before creating another resume with the same name)

private void BuildCurrencySummary(string name, UltraGridColumn col)
{
    SummarySettings ss = grd.DisplayLayout.Bands[0].Summaries.Add(name, SummaryType.Sum, col);
    ss.SummaryPositionColumn = col;
    ss.SummaryPosition = SummaryPosition.UseSummaryPositionColumn;
    ss.Appearance.FontData.Bold = Infragistics.Win.DefaultableBoolean.True;
    ss.Appearance.ForeColor = Color.Black;
    ss.Appearance.TextHAlign = HAlign.Right;
    ss.DisplayFormat = "{0:C}";
}
+3
source

Infragistics:

AllowRowSummaries.

AllowRowSummaries - ( ) , . "", .

Override AllowRowSummaries False.

UltraGrid1.DisplayLayout.Override.AllowRowSummaries = Infragistics.Win.UltraWinGrid.AllowRowSummaries.[False]
0

All Articles