If e.Col.Name = "审核状态" Then
e.StartDraw()
Dim msg As String
Dim tl As Integer = e.Text.Length
Select Case tl
Case 2
msg = " " & e.Text & " "
Case 3
msg = " " & e.Text & " "
Case Else
msg = e.Text
End Select
If msg = "" Then Return
If tl <= 4 Then
e.Col.Width = 61
Else
e.Col.width = tl*15+1
End If
Dim w As Integer = e.Width - 4
Dim h As Integer = e.Height - 4
Dim x As Integer = e.x + (e.Width - w)/2
Dim n As Pen
Dim fnt As New Font("黑体",9)
Dim br As Brus
If e.Text.Contains("审") Then
n = New Pen(Color.Blue,2)
br = New SolidBrush(color.Blue)
Else
n = New Pen(Color.Red,2)
br = New SolidBrush(color.red)
End If
e.Graphics.DrawRectangle(n,x,e.y + 2,w,h)
e.Graphics.DrawString(msg,fnt,br,x + 1,e.y + 4)
e.Text = ""
e.EndDraw()
End If