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
The code you have here should work fine, then, except for the DisplayFormat issue I already mentioned. What's the problem?
Sorry, it was late Friday. Ok, I have a grid with three columns, I want to to sum the second column("Full") and display it at the bottom. Something like:
User Full Date
mike 1 1012005
tom 0.5 2022005
Days missed: 1.5
I just want to know how to make the "Days missed: 1.5" happen. Thanks
I'm not sure what your question is, but one thing I notice here is that your DisplayFormat doesn't contain the replacement code for the sumary value. It should be something like "Days Missed: {0}"