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. undo-redo for listview

undo-redo for listview

Scheduled Pinned Locked Moved C#
data-structuresquestion
2 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.
  • M Offline
    M Offline
    mm310
    wrote on last edited by
    #1

    I need to implement an undo and redo for an entire row in a listview containing approximately 10 columns. I'm not sure of the best way to implement this. The only thing that I've thought of is a stack implementation. I need to be able to undo a delete, an insert (add), a movement within the list Any ideas? Thank you and any ideas would be appreciated.

    S 1 Reply Last reply
    0
    • M mm310

      I need to implement an undo and redo for an entire row in a listview containing approximately 10 columns. I'm not sure of the best way to implement this. The only thing that I've thought of is a stack implementation. I need to be able to undo a delete, an insert (add), a movement within the list Any ideas? Thank you and any ideas would be appreciated.

      S Offline
      S Offline
      Scott Dorman
      wrote on last edited by
      #2

      You can try looking at the Memento pattern: http://www.codeproject.com/useritems/GenericMementoPattern.asp[^] http://www.codeproject.com/csharp/undoredobuffer.asp[^] http://www.codeproject.com/csharp/generic_undo_redo.asp[^]

      ----------------------------- In just two days, tomorrow will be yesterday.

      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