DataGridView Top Left Cell Selected By Default

Posted on 2007-10-04
Last Modified: 2008-10-31
Is there any way to have nothing selected on a DataGridView.  I have a form that is being used for display/"Read Only".  No matter what locked/enabled/read only/tab stop off... properties that I choose for my DataGridView it still wants to highlight the top left cell.  How can I get this to not happen.  I would prefer that the grid not have focus or any highlight/curser.

Thanks In Advance
Question by:H-SC
    LVL 9

    Accepted Solution

        DataGridView1.Item(0, 0).Selected = False
            Me.DataGridView1.Enabled = False
    LVL 3

    Expert Comment

    You need to use

    MyDataGridView.CurrentCell = Nothing

    and may be

    LVL 1

    Author Comment


    Your solution worked!!

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    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…

    745 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

    19 Experts available now in Live!

    Get 1:1 Help Now