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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do i copy Datagrid to clipboard problem

Thread ID:





9599 Dec 31,2003 05:05 AM UTC Dec 31,2003 06:12 AM UTC WinForms 1
Tags: GridControl
Sachin Bidwe
Asked On December 31, 2003 05:05 AM UTC

I am trying to copy the data from Datagrip to Clipboard. i have a button on the form if i click on the button the datagrid data should get copy into a clipboard and if i open the excel and do Ctrl - V then the copied data should get paste to Excel file. How do i achieve this. facing problem. does any one help me?

Administrator [Syncfusion]
Replied On December 31, 2003 06:12 AM UTC

If you are using a GridDataBoundGrid, you can use the Model.CutPaste.CopyTextToClipboard method. GridRangeInfo range = GridRangeInfo.Cells(1, 1, this.gridDataBoundGrid1.Model.RowCount - 1, this.gridDataBoundGrid1.Model.ColCount); GridRangeInfoList rangeList = new GridRangeInfoList(); rangeList.Add(range); this.gridDataBoundGrid1.Model.CutPaste.CopyTextToClipboard(rangeList);


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