473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

Thanks in advance.

Maggie
Jul 21 '05 #1
2 2839
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chris Plowman | last post by:
Hi all, I was wondering if anyone can help me with a really annoying problem I have been having. I made a derived datagrid class that will select the row when a user clicks anywhere on a cell...
2
by: Maggie Eusebio Schock | last post by:
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,...
3
by: BBFrost | last post by:
Ok, I know how to count the number of selected datagrid rows using the code below. What has me stumped is how to determine when the selected rows within a datagrid have been changed. The...
3
by: PeterZ | last post by:
Hi, In a running C# app with a datagrid control I select all rows in the dataGrid using CTRL-A, I then paste into some other app like notepad or Word but the column headings get left off. Is...
2
by: Alpha | last post by:
I have a window application. In one of the form, a datagrid has a dataview as its datasource. Initial filtering result would give the datavew 3 items. When I double click on the datagrid to edit...
1
by: Eddy Balan | last post by:
Hi. Please help me....... I would like to copy the datagrid contents to clipboard and then to paste it into Excel but I can't make a multiple selection. Eddy
2
by: Devlei | last post by:
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...
4
by: gordon | last post by:
Hi I hav e a smallish app that has a datagridview. A user can select some columns in the datagrid, and i have a button that i would like to use to copy the rows that are selected to the...
8
by: Matt | last post by:
Guys I could really use some help with this. I think that it's probably a simple solution but I haven't been able to find anything. I have a datagrid on my form that I populate via code like...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.