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
130
WinGrid Summary
posted

I have a WinGrid with column "Full", I want to add a total at the bottom in code, so no user naction I have this:

Private

Sub UserGrid_InitializeLayout(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UserGrid.InitializeLayout

e.Layout.Bands(0).SortedColumns.Add("Code", False, True)e.Layout.Bands(0).Summaries.Add("Full", SummaryType.Count, Me.UserGrid.DisplayLayout.Bands(0).Columns(0), SummaryPosition.UseSummaryPositionColumn)

e.Layout.Bands(0).Summaries.Item(

"Full").DisplayFormat = "Days Missed: "

End Sub

 

Is this even close? Thanks