button check/uncheck all for datagridview

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 4 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
Aleksandr
Posts: 2
Last visit: Wed Dec 11, 2019 11:36 pm

button check/uncheck all for datagridview

Post by Aleksandr »

Hi.

Help plese )

How make button or event for header column for check/uncheck all elements in datagridview.
first column type DataGridViewCheckBoxColumn
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: button check/uncheck all for datagridview

Post by jvierra »

To add a checkbox for this to the header will require that you create a checkbox that is positioned over the spot you want and set to be the "topmost" control.
This topic is 4 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked