471,092 Members | 1,094 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Copy/paste in datagrid pasting junk

I have a form with a datagrid containing 3 columns linked to an in memory
dataset. Only the 3rd column is editable.
Beneath that I have a rich text box bound to the same data as the 3rd column
and this is also editable.
The user can enter text in the column or rich text box.

If I press CTRL C in this datagrid column, followed by CTRL V to copy the
string to another record, I get a pile of junk pasted prior to the string i
eg The contents of the field contain "QQQQQ". I select it, press CTRL C,
move down one record and press CTRL V and
get the following string "frmReportCentreRO_0_1MA hours availableQQQQQ"
If I copy from the richtext box, pasting results in the expected string.

Does anyone have any idea what's going on please?
May 3 '07 #1
1 1727
I have the selection mode set up to select the whole row. So CTRL C is
selecting the text across all fields in the row.
If this is default behaviour then I need to trap a copy shortcut message so
I can send the correct text to the clipboard.

Is there anyway of querying Windows to find out what the Copy shortcut key
combo is for that locale?

May 3 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Legendary Pansy | last post: by
3 posts views Thread by PeterZ | last post: by
7 posts views Thread by lgbjr | last post: by
17 posts views Thread by Steve | last post: by
1 post views Thread by Grant Smith | last post: by
1 post views Thread by The Tarm | last post: by

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.