Click here to Skip to main content
15,894,539 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir i want to get the selected row index of listview how to get it..
Posted

Use below code.

C#
int index = listView.SelectedIndices[0];


Refer the below link.

http://unlockforus.blogspot.in/2010/02/c-how-to-get-selected-index-and.html[^]
 
Share this answer
 
SQL
myListView.SelectedItems(0).Index

myListView.SelectedIndices(0)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900