get value from a listview column
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: get value from a listview column

  1. #1
    Join Date
    Jan 2005
    Posts
    122

    Question get value from a listview column

    How can I get the value of a listView column in the details style?

    I have 2 columns and want to retrieve the data from the secund column...

    Thanks in Advance

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940

    Re: get value from a listview column

    How about this :

    Code:
    // assuming we have a list view called listView :
    int nRow = 2;
    int nColumn = 1;
    
    ListViewItem item = listView[nRow][nColumn];
    string sItem = item.ToString();
    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center