Created
February 24, 2013 04:50
-
-
Save anakahala/5022645 to your computer and use it in GitHub Desktop.
UltraWinGridで列の合計を下に固定して表示
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dim band = Me.grdList.DisplayLayout.Bands(0) | |
| Dim setting As Infragistics.Win.UltraWinGrid.SummarySettings | |
| Dim startIndex = band.Columns(GridColumns.Gokei).Index | |
| Dim endIndex = band.Columns(GridColumns.Month10).Index | |
| For colIndex = startIndex To endIndex | |
| setting = band.Summaries.Add(Infragistics.Win.UltraWinGrid.SummaryType.Sum, band.Columns(colIndex)) | |
| setting.DisplayFormat = "{0:#,##0}" | |
| setting.Appearance.TextHAlign = Infragistics.Win.HAlign.Right | |
| Next | |
| Me.grdList.DisplayLayout.Override.SummaryDisplayArea = | |
| Infragistics.Win.UltraWinGrid.SummaryDisplayAreas.GroupByRowsFooter Or Infragistics.Win.UltraWinGrid.SummaryDisplayAreas.BottomFixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment