ListView Item select in winform in C#

Total Post:110

Points:776

C# 
C#
 11294  View(s)
Ratings:
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#

    Solution!

    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

Answer

Please check, If you want to make this post sponsored

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