.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# - SharpSVN - How to get the previous revision? -

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

url - Querystring manipulation of email Address in PHP -