ListView Items

This is a discussion on ListView Items within the C# Programming forums, part of the General Programming Boards category; I have a listview with a few hundred rows, and each row contains four different values that are divided by ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    18

    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
    ....
    etc.

    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?
    thanks

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

    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21