By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,245 Members | 884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,245 IT Pros & Developers. It's quick & easy.

Copy DataGrid Rows to Clipboard

P: n/a
How do I copy the contents of selected rows in a DataGrid (that is
bound to a Dataset via a DataView) to the Clipboard for pasting into
other applications - such as Excel? Doing the same from a TextBox is
easy via the TextBox.SelectedText property, but I can't find the
DataGrid property to do the same for the selected rows.

Mar 6 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Devlei,

I would not know why this would go. A datagrid is not an dataformat, so it
can not be used on the clipboard.

I assume that you will first have to make an excel sheet from it using the
office development or office interop.

I hope this helps,

Cor

"Devlei" <de****@eastcape.net> schreef in bericht
news:11**********************@i40g2000cwc.googlegr oups.com...
How do I copy the contents of selected rows in a DataGrid (that is
bound to a Dataset via a DataView) to the Clipboard for pasting into
other applications - such as Excel? Doing the same from a TextBox is
easy via the TextBox.SelectedText property, but I can't find the
DataGrid property to do the same for the selected rows.

Mar 6 '06 #2

P: n/a
Thanks Cor

How do I get a Collection of currently selected rows?

Dave

Mar 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.