在dataGrid视图中的c#.net中进行UnDo重做 [英] UnDo Redo in c#.net in dataGrid view

查看:97
本文介绍了在dataGrid视图中的c#.net中进行UnDo重做的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i开发了一个继承自datagridview的应用程序我想在同一个应用程序上实现

UnDo / ReDo因为它可以在MS Word等其他Microsoft Control中工作....

请帮我解决这个问题..

和这个UnDO / ReDo操作我必须同时进行for two Column。

hi

i have develop an application which is inherited from datagridview i want to implement
UnDo/ReDo on that application in the same way as it work in other Microsoft Control like MS word ....
please help me out on this..
and this UnDO/ReDo operation i have to do simultaneouslly for two Column.

推荐答案

DataSet.RejectChanges 方法回滚所有更改自创建以来对 DataSet 进行了制作。

请参阅: http://msdn.microsoft.com/en-us/library/system.data.dataset.rejectchanges.aspx [ ^ ]
DataSet.RejectChanges Method Rolls back all the changes made to the DataSet since it was created .
See : http://msdn.microsoft.com/en-us/library/system.data.dataset.rejectchanges.aspx[^]


这篇关于在dataGrid视图中的c#.net中进行UnDo重做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆