If I built an application that expects the user to use the copy-paste functionality from
a datagridview to excel (as a simple export), do I run a big risk that this will no longer work/give strange behavior in future builds of .net/versions of excel?
If I built an application that expects the user to use the copy-paste functionality
Share
Per this MSDN article on copying data from a
DataGridView, the control will set onto the clipboard both tab-delimited string data and an HTML table representing the data that was copied. These being relatively standard formats, as well as a relatively standard practice for exchanging data, you should be safe.Of course, nobody can say with certainty what Microsoft will do in future versions of their products, so there’s always a chance that something will break later on. However, Microsoft’s pretty good at making things sufficiently backwards-compatible.