I'm trying to create a WinForms ListView control with 6 columns. The first two columns will have text in them, but I want the last four columns to have a checkbox in them.
I know how to add a ListViewSubItem with text (did this for the second column), but how do you insert a CheckBox?
ListView doesn't support this. Only the 1st column can have a checkbox. You could fake it with custom drawing and mouse hit testing but that's a lot of work. Consider using a DataGridView instead. You can change the column type to DataGridViewCheckBoxColumn.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With