且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在列表视图中获取选定的行索引

更新时间:2023-12-05 09:35:16

myListView.SelectedItems(0).Index


myListView.SelectedIndices(0)


使用以下代码.

Use below code.

int index = listView.SelectedIndices[0];



请参考以下链接.

http://unlockforus.blogspot.in/2010/02/c-how-to-get-selected-index [



Refer the below link.

http://unlockforus.blogspot.in/2010/02/c-how-to-get-selected-index-and.html[^]