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

DataGrid -- when do selected rows end up on clipboard?

P: n/a
Hi,

I would like to understand when a selected cell, selected row or
selected rows in the DataGrid control ends up on the clipboard. All I
know is that the selection ends up on the clipboard, because when I
issue a copy command then paste to an editor, the selected datagrid
cell(s) end up on the editor.

Maybe a better way of stating my question is during what event (e.g.
MouseUp) do the selected cells end up on the clipboard (I assume via
the Clipboard.SetDataObject() method call.)

Thanks in advance.

Maggie
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Maggie,

This is a complete guess, but I would think that either when the
KeyPress or the KeyUp event is when it gets copied.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- nick(dot)paldino=at=exisconsulting<dot>com

"Maggie Eusebio Schock" <da*********@yahoo.com> wrote in message
news:ab**************************@posting.google.c om...
Hi,

I would like to understand when a selected cell, selected row or
selected rows in the DataGrid control ends up on the clipboard. All I
know is that the selection ends up on the clipboard, because when I
issue a copy command then paste to an editor, the selected datagrid
cell(s) end up on the editor.

Maybe a better way of stating my question is during what event (e.g.
MouseUp) do the selected cells end up on the clipboard (I assume via
the Clipboard.SetDataObject() method call.)

Thanks in advance.

Maggie

Jul 21 '05 #2

P: n/a
I don't think data on DataGrid automatically go to Clipboard when you simply
select row(s) or cell(s)

It only goes to Clipboard if you press Ctrl+C.(of course if you design
Ctrl+C for other purpose in the app, then it won't copy to Clipboard)
"Maggie Eusebio Schock" <da*********@yahoo.com> wrote in message
news:ab**************************@posting.google.c om...
Hi,

I would like to understand when a selected cell, selected row or
selected rows in the DataGrid control ends up on the clipboard. All I
know is that the selection ends up on the clipboard, because when I
issue a copy command then paste to an editor, the selected datagrid
cell(s) end up on the editor.

Maybe a better way of stating my question is during what event (e.g.
MouseUp) do the selected cells end up on the clipboard (I assume via
the Clipboard.SetDataObject() method call.)

Thanks in advance.

Maggie

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.