65.9K
CodeProject is changing. Read more.
Home

RowHeader Style in DataGridView - Remove Shape

starIconstarIconstarIconstarIconstarIcon

5.00/5 (3 votes)

Jul 21, 2011

CPOL
viewsIcon

35582

Remove the triangle and star symbol from the row header in a DataGridView.

Me.DataGridView1.RowHeadersDefaultCellStyle.Padding = New Padding(3)

Use this code to avoid the triangle shape in the current row selection.