To automatically select the first item in the list, you can use

this.listView1.Items[0].Selected = true; 

but this method chooses it and goes to the next form. And how easy it is to mark an element and that's it.

  • one
    Do you have a SelectedIndexChanged handler assigned? - Andrey NOP
  • This code alone does not do this. Perhaps another code tracks changes and performs some actions. To understand your situation, build a reproducible example - default locale
  • @AndreyNOP is not sure about this ... In Windows Forms, I have only one day, I just went to fix one bug - Maksims
  • @AndreyNOP I assume that there must be some opportunity to select an element from the list. - Maksims
  • @ AndreyNOP is just looking =) - Maksims

0