用字符列存放你输入的值。
DataColChanged事件写代码
If e.DataCol.name = "第八列" Then
Dim str As String = e.DataRow("第八列")
Dim mc = System.Text.RegularExpressions.Regex.Matches(str,"[0-9.]+")
If mc.count = 2 Then
If mc(0).value > 140 OrElse mc(1).value > 90 Then
e.DataRow("第九列") = "高血压"
Else
e.DataRow("第九列") = Nothing
End If
Else
e.DataRow("第九列") = Nothing
End If
End If