This is a migrated thread and some comments may be shown as answers.

multiple columns

2 Answers 281 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Emilio
Top achievements
Rank 1
Emilio asked on 12 May 2012, 12:35 PM
Hi,

can't go through. Im using vb.net, how do i add items in multiple columns and make the 2nd column editable and the 1st one is not?
viewtype is "ListView"



dim itm as listviewdataitem

itm = new listviewdataitem
itm.text = "data in col1"
radlistview1.items.add(itm)


thanks,

2 Answers, 1 is accepted

Sort by
0
Emilio
Top achievements
Rank 1
answered on 14 May 2012, 02:30 PM
got it, i need to use "details" as the viewtype, is it possible specify which cells are only editable?

Thanks
0
Ivan Todorov
Telerik team
answered on 15 May 2012, 12:54 PM
Hello Emilio,

Thank you for writing.

You can disable editing the first column by handling the ItemEditing event and checking the CurrentColumn property of RadListView. This scenario is demonstrated in the attached project.

I hope you find it useful. Do not hesitate to write back if you have any further questions.

All the best,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
ListView
Asked by
Emilio
Top achievements
Rank 1
Answers by
Emilio
Top achievements
Rank 1
Ivan Todorov
Telerik team
Share this question
or