c# - How Can I Click a ListView Item Programatically? -


is possible? uwp doesn't seem have select() method in winforms. have tried mylistview.selecteditem = mylistview.items[0];, highlights item , not fire itemclick event, like.

solution:

if not mistaken, listview has property called selected index might trick. if select item , manually call method event fires produce same result. think if selected index not work might have manually call method , select item hoping for.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -