PC Review


Reply
Thread Tools Rate Thread

Copy/paste in datagrid pasting junk

 
 
SeeSharp Bint
Guest
Posts: n/a
 
      3rd May 2007
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?


 
Reply With Quote
 
 
 
 
SeeSharp Bint
Guest
Posts: n/a
 
      3rd May 2007
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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i copy/paste in excel without pasting hidden lines sarah5bp Microsoft Excel Misc 1 18th Feb 2010 11:16 AM
CONTROLS - Copy/Paste : inverted pasting order ! teo Microsoft VB .NET 2 18th Mar 2008 01:46 PM
How do I copy & paste without copying & pasting =?Utf-8?B?S3lsaWU=?= Microsoft Word Document Management 3 3rd Apr 2007 10:10 AM
Copy / Pasting ONLY value. Paste format NOT allowed AA Arens Microsoft Excel Discussion 3 26th Nov 2006 05:22 PM
When i copy and paste words its pasting just= Hello! =?Utf-8?B?RGlkYQ==?= Microsoft Word Document Management 1 29th Apr 2005 09:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:35 AM.