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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Maggie Eusebio Schock

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

    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.SetDa taObject() method call.)

    Thanks in advance.

    Maggie
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: DataGrid -- when do selected rows end up on clipboard?

    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)paldin o=at=exisconsul ting<dot>com

    "Maggie Eusebio Schock" <danielle_nm@ya hoo.com> wrote in message
    news:ab3d5f19.0 310081308.3c97c 746@posting.goo gle.com...[color=blue]
    > 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.SetDa taObject() method call.)
    >
    > Thanks in advance.
    >
    > Maggie[/color]


    Comment

    • Norman Yuan

      #3
      Re: DataGrid -- when do selected rows end up on clipboard?

      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" <danielle_nm@ya hoo.com> wrote in message
      news:ab3d5f19.0 310081308.3c97c 746@posting.goo gle.com...[color=blue]
      > 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.SetDa taObject() method call.)
      >
      > Thanks in advance.
      >
      > Maggie[/color]


      Comment

      Working...