Sunday, August 05, 2012 9:58 PM
I want to put CheckBoxes in the RowHeaders of a DataGridView, even in the column header cell of the row headers column (I mean, the cell at 0, 0). It seems that I can subclass either DataGridViewCheckBoxCell or implement IDataGridViewEditingControl, or both.
It is even possible that I would need separate classes for the header and the RowHeaders.
Besides, what I've found so far hints at drawing the cell by yourself.
Any advice on how to proceed here ??
- Edited by dtoffe Friday, August 10, 2012 7:23 PM
Monday, August 06, 2012 2:01 PM
Below link contain code to have CheckBox in ColumnHeader. You can change that code to have CheckBox in RowHeader
Gaurav Khanna | Microsoft VB.NET MVP
Friday, August 10, 2012 7:23 PM
Thanks for your help, but this works for a standard CheckBoxColumn, what I want is to have checkboxes in the RowHeader cells. I´ll post a more specific question for this.
Monday, August 13, 2012 7:50 AMModerator
You have marked your thread as solved. Have you got the solution?
It is appreciated if you would like to share your solution or idea here, it will be much benificial to other community members.
The checkBox in left top cell(index is -1, -1) could be added to the controls as mentioned by Khanna, some other link:
Another workaroud is to set the RowHeadersVisible property to false, and use CheckBoxCell as the above article mentioned.
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Edited by Chester HongMicrosoft Contingent Staff, Moderator Monday, August 13, 2012 8:01 AM
Tuesday, August 28, 2012 7:15 PM
I'm posting my solution in this thread: