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

removing an item from a listview control

P: n/a
Tim
I have a listview control in my app and what I'm trying to do is this: I
have FullRowSelect set to True and in my listview control I want to be able
to select a full row and remove it from the listview. This seemed easy for
me to do but as I found out it wasn't as easy. Is there a way to get the
index of the full row that I select?

Thanks,
Tim
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* "Tim" <dg******@maine.rrdotcom> scripsit:
I have a listview control in my app and what I'm trying to do is this: I
have FullRowSelect set to True and in my listview control I want to be able
to select a full row and remove it from the listview. This seemed easy for
me to do but as I found out it wasn't as easy. Is there a way to get the
index of the full row that I select?


\\\
Dim li As ListViewItem
For Each li In Me.ListView1.SelectedItems
li.Remove()
Next li
///

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.