Thread: ListView Items

  1. #1
    Registered User
    Join Date
    Jan 2002

    ListView Items

    I have a listview with a few hundred rows, and each row contains four different values that are divided by columns (looks something like this):
    FileName Artist SongName Path
    row1 cool.mp3 me cool C:\cool.mp3
    row2 notcool.mp3 Jimbo Not Cool C:\badsongs\notcool.mp3

    i am trying to write a playlist out of these. How can i get the information from the path column and set it as a string, or maybe each row into an array?

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Hannover, Germany
    foreach( ListViewItem item in yourListView.Items )
    // do whatever you want with "item" or one of it's subitems

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. HELP!!!!emergency Problem~expert please help
    By unknowppl in forum C++ Programming
    Replies: 9
    Last Post: 08-21-2008, 06:41 PM
  2. HELP!!!!emergency ~expert please help
    By unknowppl in forum C Programming
    Replies: 1
    Last Post: 08-19-2008, 07:35 AM
  3. ListView controls - Adding items .. What the beep?
    By IceDane in forum Windows Programming
    Replies: 7
    Last Post: 04-08-2008, 12:07 PM
  4. Moving items in a ListView
    By Cactus_Hugger in forum Windows Programming
    Replies: 1
    Last Post: 01-18-2006, 08:40 PM
  5. Selected Items in a ListView
    By Lowas in forum Windows Programming
    Replies: 12
    Last Post: 09-01-2001, 07:17 PM
Website Security Test