Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / VB

RowHeader Style in DataGridView - Remove Shape

5.00/5 (3 votes)
21 Jul 2011CPOL 35.6K  
Remove the triangle and star symbol from the row header in a DataGridView.
VB
Me.DataGridView1.RowHeadersDefaultCellStyle.Padding = New Padding(3)

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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)