如何在列表视图中获取选定的行索引 [英] how to get selected row index in listview
本文介绍了如何在列表视图中获取选定的行索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,我想获取listview的选定行索引如何获取它..
sir i want to get the selected row index of listview how to get it..
推荐答案
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[^]
这篇关于如何在列表视图中获取选定的行索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文