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.

RTFText Loosing the Format

Thread ID:

Created:

Updated:

Platform:

Replies:

13025 Apr 19,2004 06:10 AM Apr 21,2004 04:23 PM Windows Forms 3
loading
Tags: GridControl
Satish
Asked On April 19, 2004 06:10 AM

Clay, RichText is loosing the Format, once the user copies and pasted the row. Please find the sample. Could you please tell me what''s the problem. Thanks Satish SampleApplication_1782.zip

Administrator [Syncfusion]
Replied On April 19, 2004 06:05 PM

GridDataBoundGrid only copies Text. It does not copy Style information or RTF to the clipboard. If you want to support this, you will have to handle grid.Model.ClipboardCopy and place you own custom RTF object on the clipboard, and handle grid.Modfel.ClipboardPaste and paste your custom object. Now, I am not sure how you want to handle teh problem of your user pasting RTF into a column you have not set up to handle RTF. That is what your ClipBoardPaste handler would have to do.

Satish
Replied On April 20, 2004 08:56 PM

Clay, I need to copy and paste from only RTF Control not to any other control. Do you have sample? Thanks Satish >GridDataBoundGrid only copies Text. It does not copy Style information or RTF to the clipboard. > >If you want to support this, you will have to handle grid.Model.ClipboardCopy and place you own custom RTF object on the clipboard, and handle grid.Modfel.ClipboardPaste and paste your custom object. Now, I am not sure how you want to handle teh problem of your user pasting RTF into a column you have not set up to handle RTF. That is what your ClipBoardPaste handler would have to do.

Administrator [Syncfusion]
Replied On April 21, 2004 04:23 PM

No, I do not have a sample. To make up a sample to do this would take a few hours or more. The things that complicate the coding are situations where your user copies several cells, some RTF and some not. And then tries to paste to some part of the grid that may or may not match up the RTF cells properly. And even if the RTF cells match properly, you also have to handle the rest of the cells as well. It would take some time to work through this task.

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.

;