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.

Formatting output generated by CopyTextToBuffer

Thread ID:





57232 Feb 27,2007 09:02 PM Feb 28,2007 02:34 PM Windows Forms 1
Tags: GridControl
Kevin Lee
Asked On February 27, 2007 09:02 PM


I have a GridDataBoundGrid on a form. One of the columns displays a number of type long, but the GridBoundColumn CellValueType is set to type string.

I am using CopyTextToBuffer to copy the grid contents to a string which gets written to a file. All is good except for the column with the long number. It is converted to scientific notation when copied and precision is lost. Is there a way keep the format as a string?

Thanks in advance for your help.

-- Kevin

Administrator [Syncfusion]
Replied On February 28, 2007 02:34 PM

Hi Kevin,

One way you can handle this is to subscribe to the ClipboardCopy event, and handle all the work yourself. You can place whatever you want on the clipboard, and that could be pasted later.

Please look at this forum thread.

Best regards,


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.