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. Newbie: Question about ListViews?

Newbie: Question about ListViews?

Scheduled Pinned Locked Moved C#
questiondatabase
4 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.
  • P Offline
    P Offline
    Phillip Hodges
    wrote on last edited by
    #1

    I am trying to insert an item at a specific index. However it puts the new item at the end of the list. Not where it is needed. There is only one exception to this. If I switch the view to 'list' it puts the item in the correct place. Does the 'Items.Insert(5, lvitem)' command only work when in the 'list' view? If so, what is the best way of ordering items and adding items where I would like them to be put? Thanks in advance, Phil

    "Rules are for the obedience of fools and the guidance of wise men"

    L 1 Reply Last reply
    0
    • P Phillip Hodges

      I am trying to insert an item at a specific index. However it puts the new item at the end of the list. Not where it is needed. There is only one exception to this. If I switch the view to 'list' it puts the item in the correct place. Does the 'Items.Insert(5, lvitem)' command only work when in the 'list' view? If so, what is the best way of ordering items and adding items where I would like them to be put? Thanks in advance, Phil

      "Rules are for the obedience of fools and the guidance of wise men"

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Phillip Hodges wrote:

      Does the 'Items.Insert(5, lvitem)' command only work when in the 'list' view?

      No, but the behavior is effected by having more than one "group". I was researching this but never got back to it. My next phase was going to look at using the "group" interface for inserting.

      led mike

      P 1 Reply Last reply
      0
      • L led mike

        Phillip Hodges wrote:

        Does the 'Items.Insert(5, lvitem)' command only work when in the 'list' view?

        No, but the behavior is effected by having more than one "group". I was researching this but never got back to it. My next phase was going to look at using the "group" interface for inserting.

        led mike

        P Offline
        P Offline
        Phillip Hodges
        wrote on last edited by
        #3

        Thanks for that... Will look into it... Phil

        "Rules are for the obedience of fools and the guidance of wise men"

        L 1 Reply Last reply
        0
        • P Phillip Hodges

          Thanks for that... Will look into it... Phil

          "Rules are for the obedience of fools and the guidance of wise men"

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Phil, I went back to work on that project and got groups working. How are you doing with it?

          "Alot of the people on this forum are incredibly stupid, thinking that the internet is real"
          Score: 1.0 in the Soap Box

          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