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 labeledit

ListView labeledit

Scheduled Pinned Locked Moved C#
helpquestiondatabase
5 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.
  • _ Offline
    _ Offline
    _Magnus_
    wrote on last edited by
    #1

    Im trying to support labeledit in my ListView control but i am stuck on getting the ListViewItem object edited. In the EventArg to EndLabelEdit there is an Item member telling which index was edited but how do i get the ListViewItem from the index? listView1.Items returns the ListViewItemCollection and according to the help there should be an Item property there but it is not there...:confused: /Magnus


    - I don't necessarily agree with everything I say

    M 1 Reply Last reply
    0
    • _ _Magnus_

      Im trying to support labeledit in my ListView control but i am stuck on getting the ListViewItem object edited. In the EventArg to EndLabelEdit there is an Item member telling which index was edited but how do i get the ListViewItem from the index? listView1.Items returns the ListViewItemCollection and according to the help there should be an Item property there but it is not there...:confused: /Magnus


      - I don't necessarily agree with everything I say

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      You might want to take a look here:In-place editing of ListView subitems[^], could save you some time and effort... Regards, mav

      _ 1 Reply Last reply
      0
      • M mav northwind

        You might want to take a look here:In-place editing of ListView subitems[^], could save you some time and effort... Regards, mav

        _ Offline
        _ Offline
        _Magnus_
        wrote on last edited by
        #3

        Surely there must be some way of getting the ListViewItem by index without using SendMessage() ? /Magnus


        - I don't necessarily agree with everything I say

        M 1 Reply Last reply
        0
        • _ _Magnus_

          Surely there must be some way of getting the ListViewItem by index without using SendMessage() ? /Magnus


          - I don't necessarily agree with everything I say

          M Offline
          M Offline
          mav northwind
          wrote on last edited by
          #4

          If I understand your problem correctly then a simple

          ListViewItem theItem = listView1.Items[e.Item];

          would be the answer (with e being the LabelEditEventArgs). Can it be so simple? mav

          _ 1 Reply Last reply
          0
          • M mav northwind

            If I understand your problem correctly then a simple

            ListViewItem theItem = listView1.Items[e.Item];

            would be the answer (with e being the LabelEditEventArgs). Can it be so simple? mav

            _ Offline
            _ Offline
            _Magnus_
            wrote on last edited by
            #5

            Hmmm..i was so sure that was the first thing i did try, it is that simple....i better start sleeping at nights.:-O /Magnus


            - I don't necessarily agree with everything I say

            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