Adjust the the thickness of the Data Grid View

Posted on 2009-12-28
Last Modified: 2013-12-17
Hi, please refer to the image. How do I adjust the that part of the grid upon loading? I kind of want it thinner, just about the the arrowhead inside. I'm using C# .NET Windows Forms. Thanks in advance.
Question by:0nepiece
    LVL 5

    Accepted Solution

    dataGridView1.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing;

    dataGridView1.RowHeadersWidth = 10;

    Author Closing Comment

    Thanks!! It adjusted the width of that part of the grid just right. What's the "DisableResizing" for?
    LVL 5

    Expert Comment

    If at all , at Design time, you have set it as Auto-Rezing, you would need first line, otherwise, you do not need first line.

    Author Comment

    Ok got that! Thanks again!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    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

    Suggested Solutions

    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    This video discusses moving either the default database or any database to a new volume.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 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

    12 Experts available now in Live!

    Get 1:1 Help Now