Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Selecting item in Listview with C#

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-02-2009
Member
 
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.

Reply With Quote
  #2  
Old 02-02-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Selecting item in Listview with C#"
Thread Thread Starter Forum Replies Last Post
how to use Vscrollbars with Listview Suffix Software Development 1 01-10-2011 11:46 AM
Adding new Item to ?Add New Item? Dialog in Visual Studio 2010 NProtector Windows Software 3 12-11-2010 03:38 AM
Want to delete the data using the ListView Flaco Software Development 6 20-01-2010 05:42 PM
ListView or ListBox Heather5 Software Development 3 29-08-2009 12:10 AM
limits on listview Christopher Software Development 3 17-10-2008 03:07 PM


All times are GMT +5.5. The time now is 03:14 AM.