Solved

Trying not to change a DataGridViewCheckBoxCell?

Posted on 2014-03-20
2
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to limit User Input 2 33
Groupbox Control ? 2 29
VB.net Excel VSTO Add-in version compatability 2 18
Check only one toolstripmenu item 12 30
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…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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