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
175
Summaries.Add -
posted

Private Sub Add_Summaries()

Dim band As UltraGridBand = Me.UltraGrid1.DisplayLayout.Bands(BAND_MPS)

band.Summaries.Clear()

band.Summaries.Add(SummaryType.Maximum, band.Columns(
"SubScr"), SummaryPosition.UseSummaryPositionColumn)

band.Summaries.Add(SummaryType.Sum, band.Columns("Labor_Unit"), SummaryPosition.UseSummaryPositionColumn)

End Sub

 

When the code hits the 2nd Add method ("Labor_Unit"), an error is raised:

Error #9 was generated by Infragistics2.Win.UltraWinCalcManager .v.7.2

Index was outside the bounds of the array.

What am I doing wrong?

This is on a windows form.

Thanks,

Jeff Keryk (a new user)

Parents
  • 3186
    Offline posted

    Labor_Unit is the right key?  Is Labor_Unit derived from a formula?  Not sure this will make any difference but you might use the overload of .Add where you can give it a key yourself.  like .Add('Key1", Summarytype.Maximum .....

    Nick

Reply Children