Last active
December 12, 2015 08:29
-
-
Save anakahala/4744480 to your computer and use it in GitHub Desktop.
セルの値を更新したタイミングでその行の合計を計算して表示する
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
| Private Sub gridList_AfterCellUpdate(sender As Object, e As Infragistics.Win.UltraWinGrid.CellEventArgs) Handles gridList.AfterCellUpdate | |
| Dim total = Enumerable.Range(1, 12). | |
| Sum(Function(i) e.Cell.Row.Cells(i).Value) | |
| Me.ds.Rows(e.Cell.Row.Index).SetCellValue(GridColumns.Total, total) | |
| End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment