Solved

Trying not to change a DataGridViewCheckBoxCell?

Posted on 2014-03-20
2
152 Views
Last Modified: 2014-03-28
I'm using a checkbox as a row selector for a DataGridView. When a checkbox is selected, that specific row is selected, however, I want to be able to display a message indicating that the row is selected if a user tries to click the checkbox off and keep the checkbox checked. Not sure how to accomplish this.
0
Comment
Question by:BlakeMcKenna
2 Comments
 
LVL 7

Accepted Solution

by:
COACHMAN99 earned 500 total points
ID: 39944174
If the checkbox is stored (as opposed to unbound) then why not programmatically disable the checkbox once it is set/true, in the same place where your message appears?
on click event
if chk then
  msgbox ...
  chk = true
end if
0
 

Author Comment

by:BlakeMcKenna
ID: 39945111
I've wondered about using that logic and I might end up doing just that...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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