Solved

How can I suppress the record selector column or resize it in a datagridview?

Posted on 2014-09-26
2
270 Views
Last Modified: 2014-09-26
I want to resize or eliminate the "record selector column" in a datagridview in a VB.Net project in VS2012.

By record selector column I mean the left-hand most column where you can click without clicking in data.  It's resizable at run time, but I need to know how to suppress or size to 0 at design time.

Thanks!
0
Comment
Question by:g_johnson
2 Comments
 
LVL 27

Accepted Solution

by:
Ark earned 500 total points
ID: 40347205
DataGridView1.RowHeadersVisible = False 'hide
DataGridView1.RowHeadersWidth = 15 'change width

Open in new window

You can change these properties either from code or from design view
0
 
LVL 4

Author Closing Comment

by:g_johnson
ID: 40347213
Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now