I attempted to use this code posted out on the Internet but it said that "CellStyle" was not a member of the "DataGridViewRowPostPaintEventArgs" Class. It looked great but than no cigar when I even discovered that "CellStyle" was not a member on Microsofts site. I've attempted to try and find the classes that would allow me to code this myself but am overwhelmed by the tons of classes available. I am a Beginning VB.NET programmer. Any assistance would be appreciated
Private Sub dataGridView1_RowPostPaint(ByVal sender As Object, _
ByVal e As DataGridViewRowPostPaintEventArgs) _
Handles dataGridView1.RowPostPaint
' Paint the row number on the row header.
' The using statement automatically disposes the brush.
Using b As SolidBrush = _
New SolidBrush(dataGridView1.RowHeadersDefaultCellStyle.ForeColor)
e.Graphics.DrawString( _
e.RowIndex.ToString(System.Globalization.CultureInfo.CurrentUICulture), _
e.CellStyle.Font, _
b, _
e.RowBounds.Location.X + 20, _
e.RowBounds.Location.Y + 4)
End Using
End SubThank you,
Wallace
wallace.davis@bankofamerica.com