.net - Add check items to listView -


how add checked items listview?

in .net2 window form

this sample works, items not checked

listview.items.add(     new listviewitem(new string[] { folderbrowser.selectedpath }, group_1)); 

this sample doesn't work, want add checked items

listview.items.add(     new listviewitem(         new string[] { folderbrowser.selectedpath },         group_1))         .checked(true); 

thankyou.

listviewitem lvi = new listviewitem(new string[] { folderbrowser.selectedpath }, group_1); lvi.checked = true; listview.items.add(lvi); 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -