Select Case e.DataCol.Name
Case "je3","fk1"
Dim dr As DataRow
Dim drs As List(of DataRow)
dr = e.DataTable.Find("[_SortKey] < " & e.DataRow("_SortKey"), "[_SortKey] Desc") '找出上一行
If dr Is Nothing Then '如果没有找到上一行,说明本行就是第一行
e.DataRow("ye1") = e.DataRow("je3") - e.DataRow("fk1")
dr = e.DataRow
End If
drs = e.DataTable.Select("[_SortKey] >= " & dr("_SortKey"), "[_SortKey]")
For i As Integer = 1 To drs.Count - 1 '重算余下行的余额
drs(i)("ye1") = drs(i-1)("ye1") + drs(i)("je3") - drs(i)("fk1")
Next
End Select
在加载后事件中执行提示不是DataCol.不是xxxx成员,应该诉在哪里呢事件叫