Solved

unfocus/unhiglight/deselect the datagridview cell in windows form

Posted on 2009-05-09
1
1,523 Views
Last Modified: 2012-05-06
i got a datagridview windows form

and it will highlight a cell in the datagridview

i want to disable the highlight or remove it when i printform
0
Comment
Question by:ychet
1 Comment
 
LVL 8

Accepted Solution

by:
MatthiasVance earned 500 total points
ID: 24343293
Try the included code. You might have to adjust it a bit to fully suit your needs.

Kind regards,

Matthias Vance
dataValues.SelectedCells(0).Selected = False

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

733 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