If e.Col.Name = "查看记录" AndAlso e.Row.IsNull("查看记录") = False Then
Dim s As String = e.Row("查看记录")
If s.Length > 30 Then
Dim s1 As String
Do While s.Length > 30
s1 = s1 & vbcrlf & s.SubString(0,30)
s = s.SubString(30)
Loop
s1 = s1 & vbcrlf & s
e.Table.ShowToolTip(s1.trim(vbcr,vblf),e.Row,e.Col)
Else
e.Table.ShowToolTip(s,e.Row,e.Col)
End If
End If