<p>Can you have a multicolumn listview control where one of the columns is a checkbox?  Example code or links would be greatly appreciated.</p>

<p>I am using visual studio 2005</p>

[{'answer_id': 60695, 'author': 'Winter', 'author_id': 6227, 'author_profile': 'https://Stackoverflow.com/users/6227', 'pm_score': 4, 'selected': True, 'text': '<p>Allan Anderson created a custom control to let you do this.\nYou can find it here: <a href="http://www.codeproject.com/KB/list/aa_listview.aspx" rel="noreferrer">http://www.codeproject.com/KB/list/aa_listview.aspx</a></p>\n\n<p>Here\'s some example code for that control:</p>\n\n<pre><code>\n    GlacialList mylist = new GlacialList();\n\nmylist.Columns.Add( "Column1", 100 ); // this can also be added \n\n         // through the design time support \n\nmylist.Columns.Add( "Column2", 100 ); \nmylist.Columns.Add( "Column3", 100 ); \nmylist.Columns.Add( "Column4", 100 ); \n\nGLItem item;\n\nitem = this.glacialList1.Items.Add( "Atlanta Braves" );\nitem.SubItems[1].Text = "8v";\nitem.SubItems[2].Text = "Live";\nitem.SubItems[2].BackColor = Color.Bisque;\nitem.SubItems[3].Text = "MLB.TV"; \n\nitem = this.glacialList1.Items.Add( "Florida Marlins" );\nitem.SubItems[1].Text = "";\nitem.SubItems[2].Text = "Delayed";\nitem.SubItems[2].BackColor = Color.LightCoral;\nitem.SubItems[3].Text = "Audio";\n\n\nitem.SubItems[1].BackColor = Color.Aqua; // set the background \n\n      // of this particular subitem ONLY\n\nitem.UserObject = myownuserobjecttype; // set a private user object\n\nitem.Selected = true; // set this item to selected state\n\nitem.SubItems[1].Span = 2; // set this sub item to span 2 spaces\n\n\nArrayList selectedItems = mylist.SelectedItems; \n           // get list of selected items\n</code></pre>\n'}, {'answer_id': 60698, 'author': 'Nick', 'author_id': 1490, 'author_profile': 'https://Stackoverflow.com/users/1490', 'pm_score': 2, 'selected': False, 'text': '<p>Maybe <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.checkboxes(VS.80).aspx" rel="nofollow noreferrer">ListView.Checkboxes</a>.</p>\n'}, {'answer_id': 60708, 'author': 'Keith', 'author_id': 905, 'author_profile': 'https://Stackoverflow.com/users/905', 'pm_score': 2, 'selected': False, 'text': '<p>You could use a grid view instead, as that gives you more fine control of column contents.</p>\n'}, {'answer_id': 60716, 'author': 'idursun', 'author_id': 5984, 'author_profile': 'https://Stackoverflow.com/users/5984', 'pm_score': 1, 'selected': False, 'text': '<p>You can try <a href="http://www.codeproject.com/KB/tree/treeviewadv.aspx" rel="nofollow noreferrer">TreeViewAdv</a>. It is open source and hosted on sourceforge.</p>\n'}, {'answer_id': 83882, 'author': 'Makis Arvanitis', 'author_id': 66654, 'author_profile': 'https://Stackoverflow.com/users/66654', 'pm_score': 5, 'selected': False, 'text': '<p>Better use grid view control, but if you want <strong>only</strong> one column with checkboxes and that column is the <strong>first</strong> one you can just write: </p>\n\n<pre><code>this.listView1.CheckBoxes = true;\n</code></pre>\n'}, {'answer_id': 5534056, 'author': 'CharithJ', 'author_id': 591656, 'author_profile': 'https://Stackoverflow.com/users/591656', 'pm_score': 3, 'selected': False, 'text': '<p><em>Add Checkbox column like below.</em></p>\n\n<pre><code>myListView.CheckBoxes = true;\nmyListView.Columns.Add(text, width, alignment);\n</code></pre>\n\n<p><em>Add ListViewItem s like below.</em></p>\n\n<pre><code>ListViewItem lstViewItem = new ListViewItem();\nlstViewItem.SubItems.Add("Testing..");\nlstViewItem.SubItems.Add("Testing1..");\n\nmyListView.Items.Add(lstViewItem);\n</code></pre>\n'}, {'answer_id': 5643318, 'author': 'chatcja', 'author_id': 256522, 'author_profile': 'https://Stackoverflow.com/users/256522', 'pm_score': 3, 'selected': False, 'text': '<p>Why dont you try for <a href="http://www.codeproject.com/KB/list/XPTable.aspx" rel="noreferrer">XPTable by Mathew Hall</a></p>\n'}, {'answer_id': 30975220, 'author': 'Sohaib Afzal', 'author_id': 4228223, 'author_profile': 'https://Stackoverflow.com/users/4228223', 'pm_score': 2, 'selected': False, 'text': '<p>You can set the the <code>CheckBoxes</code> property to <code>true</code>. In code this can be done like this:</p>\n\n<pre><code>listView1.CheckBoxes = true;\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/60683', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4653/']