We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Paste Text only

Hi

When copying data from Excel, word, and pasting to a TextBox cell in the virtual mode of GridControl, how to only paste the text data, not formats?

Many thanks.

Q


3 Replies

JJ Jisha Joy Syncfusion Team May 29, 2008 07:14 AM UTC

Hi,


To turn off style copy/paste support in a grid, turn off this flag.


this.grid.Model.CutPaste.ClipboardFlags &= ~GridDragDropFlags.Styles;



Please let me know if this helps.

Regards,
Jisha



QS Qingde Shi May 29, 2008 01:54 PM UTC

Hi Jisha,

Thanks for the response. however, it doesn't seem to make any difference.
In addition, when paste copied data from excel, one have to select all text of the cell in the GridControl, otherwise, no paste can be done. But when paste copied data from Word, Notepad, the behavior is just like in regular TextBox as expected.

Thanks,

Q



>Hi,


To turn off style copy/paste support in a grid, turn off this flag.


this.grid.Model.CutPaste.ClipboardFlags &= ~GridDragDropFlags.Styles;



Please let me know if this helps.

Regards,
Jisha





JJ Jisha Joy Syncfusion Team June 3, 2008 09:52 AM UTC

Hi,

I have tested the mentioned issues in simple samples. I am afraid I was not able to see the issue. Which version of Essential Studio you are using?. Is it possible for you to upload a minimal sample that shows the issue?. So that we could sort out the cause of the issue and provide you a solution soon.

Thank you for using Syncfusion Products.

Regards,
Jisha


Loader.
Live Chat Icon For mobile
Up arrow icon