I want to implement UNDO and REDO option(as we see in MS word etc). Can you suggest me a data structure for it, and how can i implement it.?
You can use Command Pattern to achive Undo/Redo
Check these samples:
http://www.codeproject.com/csharp/undoredobuffer.asp
http://www.dofactory.com/Patterns/PatternCommand.aspx