Copy/paste in datagrid pasting junk

S

SeeSharp Bint

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
copied
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?
 
S

SeeSharp Bint

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?

thanks
 

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