I have a grid where a hyperlink sometimes needs to be displayed as red. How is this done?
The following doesn't work.
Private
Sub
dgvXref_CellFormatting(sender
As
Object
, e
As
CellFormattingEventArgs)
Handles
dgvXref.CellFormatting
If
Not
IsNothing(lXrefRowIdx_RAInHistory) andalso lXrefRowIdx_RAInHistory.Contains(e.RowIndex)
Then
e.CellElement.ForeColor = Color.Red
End
If
End
Sub