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
350
Formatting Summaries
posted

I am trying to format a summation summary in dollars and cents but i cant seem to figure out how to exactly do it, can anyone help me please.

  • 469350
    Suggested Answer
    Offline posted

    Use the DisplayFormat property on the SummarySettings object.


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridBand rootBand = layout.Bands[0];
               
                SummarySettings ss = rootBand.Summaries.Add( SummaryType.Sum, rootBand.Columns["Decimal 1"]);
                ss.DisplayFormat = "{0:c}";

            }