是否有可能从剪贴板粘贴的Excel / CSV数据的DataGridView在C#中?
问题描述:
我用DataGridView控件来管理一个简单的字典(数列和几百行)。 DataGridView的功能几乎是足够的。我可以添加新行,修改数值和复制数据到Excel中。有一件事我不能做的,是从Excel数据复制到我的控制。是否有可能与某些属性?还是要做到这一点需要一些code?
I use DataGridView control to manage a simple dictionary (several columns and a few hundred rows). DataGridView functionality is almost sufficient. I can add new rows, modify values and copy data from it to Excel. One thing I cannot do is to copy data from Excel to my control. Is it possible with some properties? Or is some code required to do this?