Try changing the cell style's font in the cell paint event.
Private Sub DataGridView1_CellPainting(ByVal sender As Object, ByVal e
As System.Windows.Forms.DataGridViewCellPaintingEventArgs) Handles
DataGridView1.CellPainting
Try
If DataGridView1.Item(e.ColumnIndex, e.RowIndex).Selected Then
e.CellStyle.Font = New Font(Me.Font, FontStyle.Bold)
Else
e.CellStyle.Font = New Font(Me.Font, FontStyle.Regular)
End If
Catch
End Try
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.