Solved

unfocus/unhiglight/deselect the datagridview cell in windows form

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

757 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

18 Experts available now in Live!

Get 1:1 Help Now