English 中文(简体)
剪贴板例外数据gridview 副本
原标题:datagridview copy to clipboard exceptions

我正在尝试从数据格视图到剪贴板复制相当大数量的数据( ~ 50,000 行, 200 列双倍) 。 要做到这一点, 我将选择所有单元格, 按下 Ctrl+C 键, 我认为数据格view 可以在内部处理实际的剪贴板复制。 程序会暂停几秒钟, 然后会显示加密信息...

“参数提示不能转换为字符串类型 ”

然后程序就退出了

过去我从数据格列维复制到剪贴板上很多次,但从来没有这么多细胞。不管怎样,我认为这对今天的计算机来说 并不是太多的数据。

这是调试一个更大的问题的一部分, 我写了一个例行程序, 将整个数据格view复制到剪贴板, 打开一个新的 Excel 工作簿, 并倾弃到 Excel 工作簿 。 如果我运行这个数据格view 的例行程序, 我能得到一个系统。 从记忆的例外 。

最佳回答

或许我说50K行+200列对于剪贴板来说是一个可控制的数量。这一判断部分来自能力拷贝(amp);在Excel中粘贴类似数量,但在进一步检查后,我不知道Excel是否/何时/如何使用剪贴板。所以也许我超过了合理的内存要求...我转换了零敲碎打的方法。

问题回答

暂无回答




相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签