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
75
Sample code for UltraGrid Summary Row
posted

Hi, I am looking for sample code that create a summary row of an UltraGrid.  I am learning C#, please help.

 Thanks,

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    I'm sure there are sample of this in the WinGrid Samples Explorer that installed with the NetAdantage SDK. 

    Basically, the best place to do this is in the InitializeLayout event. A very simply exmaple would look something like this:

     


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                e.Layout.Bands[0].Summaries.Add(SummaryType.Sum, e.Layout.Bands[0].Columns["My Grid Column"]);
            }

     

Children