带有UNDO的VSTO LIST对象 [英] VSTO LIST Object With UNDO

查看:90
本文介绍了带有UNDO的VSTO LIST对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发excel插件。我正在使用LIST对象。

I was trying to develop excel plugin. I am using LIST Object.

我发现将数据绑定到列表对象后撤消不起作用。

What i found is after Binding the data into list object undo doesn't work.

是否有任何解决方案解决这个问题。

Is there any solutions to work around this.

任何帮助都将不胜感激。

Any help would be appreciated.

Sanghi

推荐答案

您好,

感谢您的帖子。

绑定一些数据后使用ListObject来源,更改ListObject的值也会更改数据源的值。您无法对ListObject使用undo的原因是您无法撤消对数据源的更改。

After binding some data source with ListObject, changing the value of the ListObject would change value of the data source as well. The reason you can't use undo for ListObject is that you can't undo changes to the data source.

但您可以从ListObject中删除数据绑定以使撤消能够与ListObject一起使用:

But you can remove data binding from the ListObject to enable undo to work with ListObject:

ListObject.Disconnect方法

我希望这会有所帮助。

I hope this helps.


这篇关于带有UNDO的VSTO LIST对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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