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
1440
Hide Summary When Count = 0
posted

Hello

My wingrid contains a summary for the count of column 1 in band 1. What I want is to hide the entire summary line when the column being counted contains a specific string value.  My code shows continues to show the summary row when the specific string value is true.  What am I missing?

Thanks

Clay Seifert

            Dim WTs As UltraDataRowsCollection = dr.GetChildRows("WorkTickets")
            Dim wtsummary As SummarySettingsCollection

           If WT("ProductName") <> "No Work Tickets have been assigned to this case." Then
                wtsummary = ug1.DisplayLayout.Bands(1).Summaries
                For Each SS As SummarySettings In wtsummary
                    SS.SummaryDisplayArea = SummaryDisplayAreas.BottomFixed
                    ug1.DisplayLayout.Bands(1).Override.SummaryDisplayArea = SS.SummaryDisplayArea
                Next
            Else
                wtsummary = ug1.DisplayLayout.Bands(1).Summaries
                For Each SS As SummarySettings In wtsummary
                    SS.SummaryDisplayArea = SummaryDisplayAreas.None
                    ug1.DisplayLayout.Bands(1).Override.SummaryDisplayArea = SS.SummaryDisplayArea
                Next
            End If

 

Parents Reply Children
No Data