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
Post a Comment