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.
Unfortunately, activation email could not send to your email. Please try again.

Paste Text only

Thread ID:

Created:

Updated:

Platform:

Replies:

74036 May 28,2008 05:26 PM Jun 3,2008 05:52 AM Windows Forms 3
loading
Tags: GridControl
Qingde Shi
Asked On May 28, 2008 05:26 PM

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


Jisha Joy [Syncfusion]
Replied On May 29, 2008 03:14 AM

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


Qingde Shi
Replied On May 29, 2008 09:54 AM

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




Jisha Joy [Syncfusion]
Replied On June 3, 2008 05:52 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;