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

  • Thread starter Maggie Eusebio Schock
  • Start date
M

Maggie Eusebio Schock

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
N

Norman Yuan

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top