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
close icon

Formatting output generated by CopyTextToBuffer

Hi,

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

1 Reply

AD Administrator Syncfusion Team 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.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=9906

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon