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

Thread: get value from a listview column

  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();
    Darwen. - 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

Azure Activities Information Page

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


HTML5 Development Center