Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
When i check the checkbox, i want also to automatic check the datagridviewcheckbox.

What I have tried:

I dont have any code for now. Need some idea there.
Posted
Updated 6-Feb-19 23:38pm
Comments
Patrice T 7-Feb-19 1:52am    
What about reading the documentation ?
Maciej Los 7-Feb-19 2:33am    
You've got idea what you want to do. Now it's time to start acting.
[EDIT]
Sorry, but we can't help you, because you did not provide enough information, for example about framework you used (WebControls, WinForm, WPF, etc.)
If you want our help, you have to at least try to do something. If you get stuck, please come back here and ask detailed question.

Cheers
Maciej
Member 14127874 7-Feb-19 20:12pm    
Sorry baby programmer only. Btw thanks

1 solution

There are some clues that will help you in the "Related Questions" section on the bottom right of this very page.

The very first one - Datagridviewcheckbox column checked values[^] should give you enough to get started.

The solution at that link uses a submit button. You want to click another checkbox somewhere to get the same effect .. so do as @Patrice-T has suggested and read the documentation - CheckBox Class (System.Windows.Forms) | Microsoft Docs[^]

Hint: An appropriate place to put the code might be in method OnCheckChanged

Once you have written some code, if you are still having problems then by all means come back with your code and we will try to help you fix it.
 
Share this answer
 
Comments
Maciej Los 7-Feb-19 14:11pm    
Good tip!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900