Click here to Skip to main content
Sign Up to vote bad
good
See more: C#ASP.NET
sir i want to get the selected row index of listview how to get it..
Posted 22 Nov '12 - 23:08


2 solutions

myListView.SelectedItems(0).Index
myListView.SelectedIndices(0)
  Permalink  
Use below code.
 
int index = listView.SelectedIndices[0];
 
Refer the below link.
 
http://unlockforus.blogspot.in/2010/02/c-how-to-get-selected-index-and.html[^]
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 425
1 OriginalGriff 315
2 Slacker007 240
3 Aarti Meswania 210
4 Maciej Los 200
0 Sergey Alexandrovich Kryukov 8,893
1 OriginalGriff 7,134
2 CPallini 3,678
3 Rohan Leuva 3,036
4 Maciej Los 2,428


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 23 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid