Why isn't 'SelectedIndex' defined on this ListView?

前端 未结 2 379
遥遥无期
遥遥无期 2020-12-21 11:34

I have created a ListView called listUsers, but for some reason SelectedIndex isn\'t defined.

2条回答
  •  渐次进展
    2020-12-21 12:30

    For getting the index of a row in ListView I'm using

     int myindex = Listview1.FocusedItem.Index; 
    

    It works.

提交回复
热议问题