private void copySelectionToClipboard() { var dataTable = _pivotGridCellsToDataTableMapper.MapSelectionFrom(Cells, _parameterDisplayFunc, outputDisplayFormatter); Clipboard.SetDataObject(_clipboardCopyTask.CreateDataObject(dataTable)); }
private void copyTableToClipboard(DataTable dataTable, bool includeHeaders = true) { if (dataTable.Rows.Count == 0) return; Clipboard.SetDataObject(_clipboardCopyTask.CreateDataObject(dataTable, includeHeaders)); }