If e.DataRow.IsNull("第一列") Then If e.DataCol.Name = "第二列" Then If e.NewValue IsNot Nothing Then e.Cancel =True Else DataTables("求值").DataCols("计算值").Expression = "((第二列 - 第一列)/第一列) * 100" End If End IfEnd If
我在
DataColChanging中编的,就是百分数怎么编,不会