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.

copy paste

Thread ID:

Created:

Updated:

Platform:

Replies:

35689 Oct 6,2005 10:27 AM Oct 6,2005 11:55 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 6, 2005 10:27 AM

I''m currently using the Syncfusion grid ver. 3.0.1.0. I would like to programatically copy a range from the grid, selected by the user, and paste it onto an email message my code has created. The only user involvement should be selecting the range to copy and then choosing the option to email the quote (via a context menu I''ve already created). Thanks

Administrator [Syncfusion]
Replied On October 6, 2005 11:50 AM

One way to do this is to use this method: this.grid.Model.TextDataExchange.CopyTextToBuffer Here is a minimal sample. http://www.syncfusion.com/Support/user/uploads/GDBG_Copy_ea59512a.zip

Administrator [Syncfusion]
Replied On October 6, 2005 11:55 AM

You should insert this first line into the above sample if you want to support full row/fullcolumn/full table selections. The range has to be modified into a cell range using the Expand function. range = range.ExpandRange(1, 1, this.gridDataBoundGrid1.Model.RowCount, this.gridDataBoundGrid1.Model.ColCount); rangeList.Add(range);

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.

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.

;