Skip to content

Instantly share code, notes, and snippets.

@anakahala
Last active December 12, 2015 08:29
Show Gist options
  • Select an option

  • Save anakahala/4744480 to your computer and use it in GitHub Desktop.

Select an option

Save anakahala/4744480 to your computer and use it in GitHub Desktop.
セルの値を更新したタイミングでその行の合計を計算して表示する
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