ListView Item select in winform in C#

Total Post:110


 11294  View(s)
Rate this:
Hi developers!

I want to select item in a ListView upon clicking. I also want to know what I clicked. I work on winforms with c#.I also want to know How I can clicking the all row?

Thanks in advance

  1. Re: ListView Item select in winform in C#


    Just handle the Click event on the list and use the ListView.SelectedItems property to get what items are selected:

    private void listView1_Click(object sender, EventArgs e)
        var firstSelectedItem = listView1.SelectedItems[0];

      Modified On Mar-30-2018 05:13:31 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.