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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PivotGridControl to Clipboard

Thread ID:

Created:

Updated:

Platform:

Replies:

143874 Apr 8,2019 07:49 PM UTC Apr 9,2019 09:06 AM UTC WinForms 1
loading
Tags: PivotGridControl
T
Asked On April 8, 2019 07:49 PM UTC

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!

Sabaridass Ramamoorthy [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon