Solved

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

Posted on 2014-09-26
2
282 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 28

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.NET - Error - Object not set in Module 4 41
HTML - Color not displaying correctly in EMAIL. 6 49
SqlServer no dupes 25 38
Footer for each row on Gridview 2 33
This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 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