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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Formatting output generated by CopyTextToBuffer

Thread ID:





57232 Feb 28,2007 02:02 AM UTC Feb 28,2007 07:34 PM UTC WinForms 1
Tags: GridControl
Kevin Lee
Asked On February 28, 2007 02:02 AM UTC


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 07:34 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon