text.contains( "9999999")ステートメントでtrueを返すことができません。インデックスが1の列にはID番号があります。これらのIDはアンカータグが付けられており、ID番号が9999999の場合は、タグを削除する必要があります。メインのifステートメントの他のすべてが正しく機能します。
If e.Row.RowType = DataControlRowType.DataRow Then
lDate = e.Row.Cells(8).Text
e.Row.Cells(7).Text = ConvertDate(e.Row.Cells(7).Text, True)
e.Row.Cells(8).Text = ConvertDate(e.Row.Cells(8).Text, True)
If e.Row.Cells(1).Text.Contains("9999999") = True Then
Regex.Replace(e.Row.Cells(1).Text, "</?(a|A).*?>", "")
Dim yoasd As String = e.Row.Cells(1).Text
End If
If e.Row.Cells(8).Text.Trim = "" Or lDate < lToday Then
e.Row.BackColor = Drawing.Color.BurlyWood
End If
End If
私も試しました:
If e.Row.Cells(1).Text = "9999999"
If e.Row.Cells(1).Text.Trim = "9999999"
If e.Row.Cells(1).Text.Contains("9999999") Then