Solved

unfocus/unhiglight/deselect the datagridview cell in windows form

Posted on 2009-05-09
1
1,505 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

773 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