.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? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -