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. Windows Forms
  4. Listview in Details view - images not visible in selected item

Listview in Details view - images not visible in selected item

Scheduled Pinned Locked Moved Windows Forms
csharpquestion
3 Posts 2 Posters 4 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
    Alan Burkhart
    wrote on last edited by
    #1

    .Net 3.5 / VB 2008... I'm using a ListView in Details view with 2 columns and FullRowSelect. Image in the left column and text in the right. When I select an item, the right column behaves as expected (blue bkgnd and white text). But the image in the left column becomes invisible and the background is white. How does one correct this? I'm probably missing something obvious but I've yet to find a solution.

    XAlan Burkhart

    A 1 Reply Last reply
    0
    • A Alan Burkhart

      .Net 3.5 / VB 2008... I'm using a ListView in Details view with 2 columns and FullRowSelect. Image in the left column and text in the right. When I select an item, the right column behaves as expected (blue bkgnd and white text). But the image in the left column becomes invisible and the background is white. How does one correct this? I'm probably missing something obvious but I've yet to find a solution.

      XAlan Burkhart

      A Offline
      A Offline
      Alan Burkhart
      wrote on last edited by
      #2

      Well, I may go back and try to figure this out but for now I've switched to a DataGridView. At least the images stay put when I click a row. But I'd still appreciate it if anyone knows why the ListView might behave so oddly.

      XAlan Burkhart

      L 1 Reply Last reply
      0
      • A Alan Burkhart

        Well, I may go back and try to figure this out but for now I've switched to a DataGridView. At least the images stay put when I click a row. But I'd still appreciate it if anyone knows why the ListView might behave so oddly.

        XAlan Burkhart

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        I believe there is a SelectedImage property in the ListViewItem class that will do the trick. Just straight out of head, didn't try though.

        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