VB.NET - ListView control question

Associate
Joined
20 Feb 2004
Posts
250
Hi
I'm a bit stuck with the ListView control (in detailed mode). I have a table with three columns. Rows are selectable (not multi). I want to, -

1) return the value of the bit of text in the second column of the selected row. I know ListViewControlName.SelectedItems(0).Text gives the data in the first column, but what about the second?
2) Is it possible to sort the control by the second column? If so how?

Many thanks!
 
One more question, whats the best way to empty a ListView? I use the code below but I'm sure there is a more fficient call, just cant find it!

For Each removeStock In StockList.Items
StockList.Items.Remove(removeStock)
Next
 
Back
Top Bottom