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

PivotGridControl to Clipboard

Is there a way to copy the contents of PivotGridControl to Clipboard? I've tried the following, but without result:
            var list = new GridRangeInfoList();
            list.Add(GridRangeInfo.Cells(1,1,4,4));
            pivotStorageSummary.TableControl.Model.CutPaste.CopyCellsToClipboard(list, true);
            pivotStorageSummary.TableModel.Model.CutPaste.CopyCellsToClipboard(list, true);
            pivotStorageSummary.TableModel.CutPaste.CopyCellsToClipboard(list, true);

Thanks!

1 Reply

SR Sabaridass Ramamoorthy Syncfusion Team April 9, 2019 09:06 AM UTC

Hi Tipal, 
 
Thanks for contacting Syncfusion Support. 
 
We have checked your requirement- “Copy pivot grid control to clipboard” and we have prepared a simple sample to achieve your requirement. Please refer to the following code example which helps to copy the grid contents to clipboard. 
 
#Form1.cs 
 
private void button1_Click(object sender, EventArgs e) 
        { 
            //To copy a particular range 
            GridRangeInfo rangeInfo = GridRangeInfo.Cells(4,4,10,10); 
            GridRangeInfoList list = new GridRangeInfoList(); 
            list.Add(rangeInfo); 
            this.pivotGridControl1.TableControl.Model.CutPaste.CopyTextToClipboard(list); 
        } 
 
Kindly find our working sample from below location. 
 
Please refer to the below KB documentation link. 

Regards, 
Sabaridass R 


Loader.
Live Chat Icon For mobile
Up arrow icon