ListView : Subitem selection
-
Hi Everybody, Could you help me out from the following problems related to List view (View: Details) ? 1) How to select the subitem? 2) How can I select one subitem and an item (if possible) ? 3) How to make both items & subitems editable? Thanks in advance, Sarvan AL
-
Hi Everybody, Could you help me out from the following problems related to List view (View: Details) ? 1) How to select the subitem? 2) How can I select one subitem and an item (if possible) ? 3) How to make both items & subitems editable? Thanks in advance, Sarvan AL
for selecting item in listview u can try foreach(ListViewItem lstitm in listView1.Items) { if(lstitm.Index==0) { lstitm.Selected=true; } } where lstitm.Index is the row number which u want to select and for editing the subitem u can try foreach(ListViewItem lstitm in listView1.Items) { if(lstitm.Index==0) { lstitm.SubItems[0].Text="xyz"; } }
rahul