By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,916 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,916 IT Pros & Developers. It's quick & easy.

Removing item and its sub items from listview

P: 1
How can I remove an Item and all its subitems on double_click in a
ListViewControl such a way that I will add the same removed items to three text boxes in a text boxes on the same form. My listview looks like this:


Column1 | Column2| Column3

Item1 |Subitem1| Subitem3 ->double_click->send them to text boxes


I have set the FullRowSelect property to true and View property to
Details, I know I can remove an item using:
listView1.Items.Remove(ListView1.SelectedItem) but I also need to
remove the sub items of that item on double_click. Later on I will be
adding these removed items to a panel control which will have 3 text
boxes to display the 3 removed items from the listview.

This is about a C# Windows form, having a listview control and a panel

Any help would be appreciated. Thank you.
Feb 18 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 2.5K+
P: 4,871
I believe that you will need to make use of double click through attributes.add...
Feb 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.