PC Review


Reply
Thread Tools Rate Thread

How do I get data from multicolumn ListView

 
 
nsteele84@hotmail.com
Guest
Posts: n/a
 
      10th Jul 2003
Hi

I have the following code for a 3 column listview:

intNumItemsSelected = lstPieceMark.SelectedItems.Count

For intCount = 0 To intNumItemsSelected - 1
strPieceMark = lstPieceMark.SelectedItems.Item(intCount).Text
Next

This returns the data in the first column. How do I get the data in
the next two columns also?

Thanks

Nick Steele
 
Reply With Quote
 
 
 
 
nsteele84@hotmail.com
Guest
Posts: n/a
 
      10th Jul 2003
Thanks


On Thu, 10 Jul 2003 17:47:39 +0200, "Armin Zingler"
<(E-Mail Removed)> wrote:

><(E-Mail Removed)> schrieb
>> I have the following code for a 3 column listview:
>>
>> intNumItemsSelected = lstPieceMark.SelectedItems.Count
>>
>> For intCount = 0 To intNumItemsSelected - 1
>> strPieceMark = lstPieceMark.SelectedItems.Item(intCount).Text
>> Next
>>
>> This returns the data in the first column. How do I get the data
>> in the next two columns also?

>
>
>Each Item has a SubItems property.
>=> lstPieceMark.SelectedItems.Item(intCount).SubItems


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ListView Multicolumn Rob Microsoft VB .NET 10 6th Jun 2007 11:43 AM
Won't Add Multicolumn Data Brandon Johnson Microsoft Excel Programming 5 7th Jun 2006 06:07 PM
Editing a multicolumn ListView =?Utf-8?B?QXJyaWNr?= Microsoft Dot NET Framework Forms 2 14th Feb 2006 11:18 PM
Multicolumn listbox data display jbl25 Microsoft Excel Programming 0 20th Sep 2005 03:56 AM
MultiColumn report where heading and data change based on the par. =?Utf-8?B?YnVmZmFsb2dhbA==?= Microsoft Access Reports 1 28th Dec 2004 04:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 PM.