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. how to use ListView Control in C#.net?

how to use ListView Control in C#.net?

Scheduled Pinned Locked Moved C#
csharptutorialquestion
5 Posts 3 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.
  • Y Offline
    Y Offline
    yousafzai
    wrote on last edited by
    #1

    plz any body tell me how i can add items to listview control with a sample C# project.

    C 1 Reply Last reply
    0
    • Y yousafzai

      plz any body tell me how i can add items to listview control with a sample C# project.

      C Offline
      C Offline
      coolestCoder
      wrote on last edited by
      #2

      Hi, Visit following sites for samples and How-Tos http://windowssdk.msdn.microsoft.com/en-us/library/ms752071.aspx[^] http://windowssdk.msdn.microsoft.com/en-us/library/ms771778.aspx[^]


      "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder


      Anant Y. Kulkarni

      C 1 Reply Last reply
      0
      • C coolestCoder

        Hi, Visit following sites for samples and How-Tos http://windowssdk.msdn.microsoft.com/en-us/library/ms752071.aspx[^] http://windowssdk.msdn.microsoft.com/en-us/library/ms771778.aspx[^]


        "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder


        Anant Y. Kulkarni

        C Offline
        C Offline
        chandler83
        wrote on last edited by
        #3

        use a ListViewItem property for the list view u have ListViewItem item; item=new ListViewItem("cchandru"); items.SubItems.Add("kanth"); YourListviewControlName.Items.Add(item); even i had this problem before..lol cheers, Chandru.

        Y 1 Reply Last reply
        0
        • C chandler83

          use a ListViewItem property for the list view u have ListViewItem item; item=new ListViewItem("cchandru"); items.SubItems.Add("kanth"); YourListviewControlName.Items.Add(item); even i had this problem before..lol cheers, Chandru.

          Y Offline
          Y Offline
          yousafzai
          wrote on last edited by
          #4

          how i can add bitmap images to ListView Control e.g Folder Image plz give me an idea about that. thanx

          C 1 Reply Last reply
          0
          • Y yousafzai

            how i can add bitmap images to ListView Control e.g Folder Image plz give me an idea about that. thanx

            C Offline
            C Offline
            chandler83
            wrote on last edited by
            #5

            u have to add a image list to the listview control property and then in the list view item property u add the image. ListViewItem item; item = new ListViewItem("Chandru",O); /* tht zero represents the image tht has to be added to this column from ur image list 0 -> 1st image in ur image list collection 1 -> second image. */ Am i clear to u?

            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