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.CellFormattingIf Not IsNothing(lXrefRowIdx_RAInHistory) andalso lXrefRowIdx_RAInHistory.Contains(e.RowIndex) Thene.CellElement.ForeColor = Color.RedEnd IfEnd Sub