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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. ListView DisplayMember

ListView DisplayMember

Scheduled Pinned Locked Moved C#
question
3 Posts 2 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.
  • E Offline
    E Offline
    eggie5
    wrote on last edited by
    #1

    What is the ListView's equivalent of ListBox's DisplayMember? /\ |_ E X E GG

    B 1 Reply Last reply
    0
    • E eggie5

      What is the ListView's equivalent of ListBox's DisplayMember? /\ |_ E X E GG

      B Offline
      B Offline
      Baris Kurtlutepe
      wrote on last edited by
      #2

      Unlike the ListBox control, the ListView control does not have a DisplayMember nor does it have a DataSource, ValueMember or any similar property. Because these are properties inherited from ListControl and ListView control is not inherited from that. If you're going to implement data binding in a ListView control, you'll have to do so by yourself and depending on the structure, you have to populate the ListView's headers, item collection and -if any- subitems manually.

      E 1 Reply Last reply
      0
      • B Baris Kurtlutepe

        Unlike the ListBox control, the ListView control does not have a DisplayMember nor does it have a DataSource, ValueMember or any similar property. Because these are properties inherited from ListControl and ListView control is not inherited from that. If you're going to implement data binding in a ListView control, you'll have to do so by yourself and depending on the structure, you have to populate the ListView's headers, item collection and -if any- subitems manually.

        E Offline
        E Offline
        eggie5
        wrote on last edited by
        #3

        OK, thanks. /\ |_ E X E GG

        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