If e.Row.Isnull("highlight")=False Then
Dim te As String()
te=e.Row("highlight").split("|") te列的内容是29|30|-8323328,代表起始列和结束列的位置和颜色
Dim line1,line2 As Integer
Dim Colo As Double
line1=val(te(0))
line2=val(te(1))
Colo=val(te(2))
Dim clr As Color = Color.FromARGB(Colo)
CurrentTable.DataTable.AddUserStyle(Colo,clr,Color.black )
If e.Col.Index < line1 Or e.Col.Index > line2 Then 在范围内的时候,标注那个颜色。
Else
e.style=Colo
End If
End If
报错信息:Exception has been thrown by the target of an invocation.
Index was outside the bounds of the array.
为何?