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

copy paste

Thread ID:





35689 Oct 6,2005 02:27 PM UTC Oct 6,2005 03:55 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On October 6, 2005 02:27 PM UTC

I''m currently using the Syncfusion grid ver. 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 03:50 PM UTC

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 03:55 PM UTC

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);


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