Over the years, a number of you have asked us to improve the manner in which we copy Grid and TreeList data - specifically, to maintain formatting so that data pasted into third-party programs will retain the formatting displayed within your app. With v15.2 and the introduction of Formatted Copy mode, you'll now retain full formatting whenever Grid and TreeList data is copied to the clipboard.
This new option simultaneously copies data to the clipboard in XLS (Biff8), RTF, HTML, CSV and plain text (ANSI and Unicode) formats. As you'd expect, once pasted, the destination application will use the appropriate format.
Formatted Data mode will retain the following whenever data is copied to the clipboard:
- Appearance settings applied to the control and its individual columns.
- Appearance settings customized using dedicated events (custom draw events are not supported).
- Excel-style cell conditional formatting.
Both our WinForms/WPF Data Grid and Tree List controls include dedicated properties to customize clipboard operations. Copying data in plain text is enabled by default (to avoid breaking changes). You can enable Formatted Data copy mode using the ClipboardMode option.
At present, the Data Grid only supports formatted data copy operations for standard Grid Views. We'll support other Views in future updates.