Choose item in ListView control-C sharp

Write the code to choose an item in a ListView control programmatically in the C#?

E

Expert

Verified

To choose the item from a ListView control, we can use the following code:

//Make sure the listview has focus 

listview1.Focus(); 

listview1.Items[i].Selected = true;

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.