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
Summaries bug of WinUltraGrid2009.2?
posted

After adding sumary,I try to get it when SummaryValueChanged and I do not want to show the SummaryDisplayArea.I get nothing.But it works when I remove the ".Bands(0).Summaries("Sumit").SummaryDisplayArea = SummaryDisplayAreas.None":

1.Why?

2.How to get Sumit in Bands(1)  Bands(2).....

Thanks in advance.

 

.Bands(0).Summaries.Add("SUMit", SummaryType.Sum, .Bands(0).Columns

.Bands(0).Summaries("Sumit").SummaryDisplayArea = SummaryDisplayAreas.None

 

 

Private Sub UltraGrid1_SummaryValueChanged(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.SummaryValueChangedEventArgs) Handles UltraGrid1.SummaryValueChanged
        If e.SummaryValue.SummarySettings.Band.Index = 0 Then
            Me.UltraTextEditor4.Text = e.SummaryValue.Value.ToString
        End If

End Sub

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Summaries in the grid are calculated lazily when the summary value is displayed. So if you never display it, the event will never fire.

    If you want a TextBox to show the sum of a column in the grid, I'd recommend using UltraCalManager and applying a formula to the TextBox.

Children
No Data