Results 1 to 2 of 2

Thread: Selecting item in Listview with C#

  1. #1
    Join Date
    Jan 2009
    Posts
    22

    Selecting item in Listview with C#

    Hi,
    I want something which allowed me in C# on .Net platform to select an item in listview.
    I want to pass the index of an item that i want it to be selected.

    Please help.

  2. #2
    Join Date
    May 2008
    Posts
    27

    Re: Selecting item in Listview with C#

    Hi,
    I don't think there is selectIndex property in listview but,
    You can use ListViewItem.Selected property to select the item.

    Code:
    listView1.Items[0].Selected =true;
    I hope this solves your problem.

Similar Threads

  1. how to use Vscrollbars with Listview
    By Suffix in forum Software Development
    Replies: 1
    Last Post: 01-10-2011, 11:46 AM
  2. Replies: 3
    Last Post: 12-11-2010, 03:38 AM
  3. Want to delete the data using the ListView
    By Flaco in forum Software Development
    Replies: 6
    Last Post: 20-01-2010, 05:42 PM
  4. ListView or ListBox
    By Heather5 in forum Software Development
    Replies: 3
    Last Post: 29-08-2009, 12:10 AM
  5. limits on listview
    By Christopher in forum Software Development
    Replies: 3
    Last Post: 17-10-2008, 03:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,974,531.56660 seconds with 16 queries