Results 1 to 3 of 3

Thread: Listview: Moving Items

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Posts
    1

    Listview: Moving Items

    Suggest I have a listview control containing three items, A B and C. I would like to move item A ope position down using Move Up and Move Down buttons...

    Can someone please tell me how to move a listitem a position down (or up)?

  2. #2
    Addicted Member
    Join Date
    Sep 2003
    Posts
    227
    the way that i could think about is , in the click handler >>
    *get index of selected item
    *delete selected item
    *add new listviewitem at wanted index ( +1 or -1 of the selected index)

  3. #3
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    1st take a reference to the item, then remove it from the items collection and then add it at the place you want
    \m/\m/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width