c# - Checkbox in listview control -


can have multicolumn listview control 1 of columns checkbox? example code or links appreciated.

i using visual studio 2005

allan anderson created custom control let this. can find here: http://www.codeproject.com/kb/list/aa_listview.aspx

here's example code control:

     glaciallist mylist = new glaciallist();  mylist.columns.add( "column1", 100 ); // can added            // through design time support   mylist.columns.add( "column2", 100 );  mylist.columns.add( "column3", 100 );  mylist.columns.add( "column4", 100 );   glitem item;  item = this.glaciallist1.items.add( "atlanta braves" ); item.subitems[1].text = "8v"; item.subitems[2].text = "live"; item.subitems[2].backcolor = color.bisque; item.subitems[3].text = "mlb.tv";   item = this.glaciallist1.items.add( "florida marlins" ); item.subitems[1].text = ""; item.subitems[2].text = "delayed"; item.subitems[2].backcolor = color.lightcoral; item.subitems[3].text = "audio";   item.subitems[1].backcolor = color.aqua; // set background         // of particular subitem  item.userobject = myownuserobjecttype; // set private user object  item.selected = true; // set item selected state  item.subitems[1].span = 2; // set sub item span 2 spaces   arraylist selecteditems = mylist.selecteditems;             // list of selected items 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -