Put CheckBox in ListViewSubItem

I am trying to create a ListView WinForms control with 6 columns. The first two columns will have text in them, but I want the checkbox selected in the last four columns.

I know how to add a ListViewSubItem with text (done this for the second column), but how do you insert a CheckBox?

+5
source share
2 answers

ListView does not support this. Only the first column can have a flag. You can fake it with custom drawing and mouse tests, but this is a lot of work. Instead, consider using a DataGridView. You can change the column type to DataGridViewCheckBoxColumn.

+4

ListView,

-1

All Articles