Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
UltraGrid's Default Copy to Clipboard truncates decimals
posted

I have a derived grid that has number formatting applied to the columns to prevent them from showing decimal places.

I set the grid to do its default Copying:

base.DisplayLayout.Override.AllowMultiCellOperations = AllowMultiCellOperation.CopyWithHeaders;

When it copies to the clipboard, it copies as text exactly what is displayed in the grid, which means it truncates the decimals (just like I do in the grid).  However, since the grid knows what the full value is, i would like the copy behavior to essentially copy the data in a manner to not lose any of the decimal places when I paste the data elsewhere.

How can I do this?  Thank you.