If e.DataCol.Name = "表格编号" Then If e.OldValue <> Nothing Then Dim drs As List(Of DataRow) = e.DataTable.Select("表格编号 = '" & e.OldValue & "'", "_sortkey") For i As Integer = 1 To drs.count drs(i-1)("物资编号") = i Next End If If e.NewValue <> Nothing Then Dim drs As List(Of DataRow) = e.DataTable.Select("表格编号 = '" & e.NewValue & "'", "_sortkey") For i As Integer = 1 To drs.count drs(i-1)("物资编号") = i Next End If End If
|