Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 29th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How can I show a summary in the footer of a win grid and not have the Sigma show up in the header?
  2. DisplayLayout.Override.AllowRowSummaries = AllowRowSummaries.Default;
  3.        
  4. private void BuildCurrencySummary(string name, UltraGridColumn col)
  5. {
  6.     SummarySettings ss = grd.DisplayLayout.Bands[0].Summaries.Add(name, SummaryType.Sum, col);
  7.     ss.SummaryPositionColumn = col;
  8.     ss.SummaryPosition = SummaryPosition.UseSummaryPositionColumn;
  9.     ss.Appearance.FontData.Bold = Infragistics.Win.DefaultableBoolean.True;
  10.     ss.Appearance.ForeColor = Color.Black;
  11.     ss.Appearance.TextHAlign = HAlign.Right;
  12.     ss.DisplayFormat = "{0:C}";
  13. }