删除行后恢复gridview中的行,如单击撤消按钮
问题描述:
如何在点击删除按钮后从gridview删除后恢复行。单击撤消按钮想要恢复Asp.net中的行c#
How to restore the rows after deleting from gridview on click of delete button. Click on undo button would like to restore the rows in Asp.net c#
答
您可以构建自己的gridView(继承自gridView和)实现Memento Design模式。有关该模式的详细信息,请参阅此链接
http://www.dofactory.com/Patterns/ PatternMemento.aspx [ ^ ]
或CodeProject ... Memento Design Pattern [ ^ ]
以防这是一篇关于创建自定义网格视图的文章 http ://msdn.microsoft.com/en-us/library/ms228046(v = vs.100).aspx [ ^ ]
You could build your own gridView that (inherits from gridView and) implements the Memento Design pattern. See this link for details of that pattern
http://www.dofactory.com/Patterns/PatternMemento.aspx[^]
or in CodeProject ...Memento Design Pattern[^]
Just in case here is an article on creating a custom gridview http://msdn.microsoft.com/en-us/library/ms228046(v=vs.100).aspx[^]