datacolchanged事件
If e.DataCol.Name = "总重" Then If e.IsNull("总重") Then e.DataRow("车数") = Nothing Else e.DataRow("车数") = 1 End If End If