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

How do i copy Datagrid to clipboard problem

Thread ID:





9599 Dec 31,2003 12:05 AM Dec 31,2003 01:12 AM Windows Forms 1
Tags: GridControl
Sachin Bidwe
Asked On December 31, 2003 12:05 AM

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 01:12 AM

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.

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.