Click here to Skip to main content
15,867,594 members
Articles / Programming Languages / Visual Basic
Tip/Trick

RowHeader Style in DataGridView - Remove Shape

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
21 Jul 2011CPOL 34.8K   13   1
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)


Written By
Web Developer Mahindra Logisoft Business Solution Limited, Chenn
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralReason for my vote of 5 Even though it's closed, this is wha... Pin
swdev.bali4-Nov-11 4:38
swdev.bali4-Nov-11 4:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.