Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

listview selected text


  • Please log in to reply
4 replies to this topic

#1 kruegs35

kruegs35

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 16 February 2009 - 06:03 PM

I want to get the text from the first column of the selected row of a listview. Can anyone give me a hand?
  • 0

#2 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 17 February 2009 - 09:05 AM

There are a few ways, depending on how you've configured your listview... what do you currently have?
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#3 kruegs35

kruegs35

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 17 February 2009 - 09:50 AM

I believe it is report style
  • 0

#4 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 17 February 2009 - 01:19 PM

That isn't what you have. When you configure your listview, you sepecify what the columns are, etc. There are a LOT of parameters and associated classes for a listview.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#5 Rustix666

Rustix666

    CC Newcomer

  • Just Joined
  • PipPip
  • 15 posts

Posted 10 December 2009 - 03:47 AM

ShowMessage( ListView1.Selected.Caption );
or
ShowMessage( ListView1.Selected.SubItems[0] );
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download