If e.DataCol.Name = "已结帐" Then If e.NewValue = True Then e.DataRow.Locked = True End If ElseIf e.DataCol.Name = "身份证号码" Then If e.DataRow.IsNull("身份证号码") Then e.DataRow("出生日期") = Nothing Else e.DataRow("出生日期") = ReadBirthday(e.NewValue) End If End If