Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. ListView

ListView

Scheduled Pinned Locked Moved C#
question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    al3xutzu00
    wrote on last edited by
    #1

    Hi, How do i select the whole listViewItem line (all the subitems of an item) when trying to copy it in the clipboard? I have a listView with 5 columns. When i try to select 1 row it only selects the first column value not the whole row.. any ideas? Regards, Alex

    “Be the change you want to see in the world.”

    H R N 3 Replies Last reply
    0
    • A al3xutzu00

      Hi, How do i select the whole listViewItem line (all the subitems of an item) when trying to copy it in the clipboard? I have a listView with 5 columns. When i try to select 1 row it only selects the first column value not the whole row.. any ideas? Regards, Alex

      “Be the change you want to see in the world.”

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Assuming this is a Windows Forms ListView. I don't know if it will make any difference to a drag-drop operation, but ListView has a FullRowSelect property, which er... well it does what it says on the tin. :)

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      1 Reply Last reply
      0
      • A al3xutzu00

        Hi, How do i select the whole listViewItem line (all the subitems of an item) when trying to copy it in the clipboard? I have a listView with 5 columns. When i try to select 1 row it only selects the first column value not the whole row.. any ideas? Regards, Alex

        “Be the change you want to see in the world.”

        R Offline
        R Offline
        Roberto Ho
        wrote on last edited by
        #3

        Set the FullRowSelect property to true. for example, listView1.FullRowSelect = true;

        1 Reply Last reply
        0
        • A al3xutzu00

          Hi, How do i select the whole listViewItem line (all the subitems of an item) when trying to copy it in the clipboard? I have a listView with 5 columns. When i try to select 1 row it only selects the first column value not the whole row.. any ideas? Regards, Alex

          “Be the change you want to see in the world.”

          N Offline
          N Offline
          nsimbu
          wrote on last edited by
          #4

          Check the properties. listView1.FullRowSelect = true;

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups