why my ListViewItem can't be edit in c# class ListView -


i've tried find answers on msdn failed.

here code:

        listview listview1 = new listview();         listview1.bounds = new rectangle(new point(10, 10), new size(300, 200));          listview1.view = view.details;         listview1.labeledit = true; //set here         listview1.allowcolumnreorder = true;         listview1.checkboxes = true;         listview1.fullrowselect = true;         listview1.gridlines = true; // show grid         listview1.sorting = sortorder.ascending; 

this allow me edit first column of list view. because first column label of each list view item.

what want edit every gird(list view item). suggestion?

try that:

listview listview1 = new listview(); listview1.view = view.details; listview1.labeledit = true; listview1.columns.add("item column", -2, horizontalalignment.left); listview1.columns.add("column 2", -2, horizontalalignment.left); listview1.items.addrange(new listviewitem[]{"",""}); listview1.items.addrange(new listviewitem[]{"",""}); . . (how many items want edit) 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -