copy paste

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

2 Replies

AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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);

Loader.
Up arrow icon