CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2005

    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
    Scaro, UK

    Re: get value from a listview column

    How about this :

    // assuming we have a list view called listView :
    int nRow = 2;
    int nColumn = 1;
    ListViewItem item = listView[nRow][nColumn];
    string sItem = item.ToString();
    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

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.