If e.DataCol.Name = "折扣" Then '如果是折扣列的内容发生变化. Dim zk As Single = e.NewValue SystemReady = False e.DataRow("含税单价") = zk * e.DataRow("牌价") SystemReady = True Else If e.DataCol.name = "含税单价" Then '如果是含税单价列的内容发生变化. Dim dj As Single = e.NewValue Dim pj As Single = e.DataRow("牌价") SystemReady = False e.DataRow("折扣") = pj / dj SystemReady = True End If