Copy + Paste Flex DataGrid Control

Is there a way to select one cell in the Flex DataGrid, and then either select the text inside the cell, or select the whole cell to copy + paste? It does not even need to be copied in a convenient format, flat text will be in order. So far I have managed to select only the whole line, and it seems that it is not very well copied. I am using DataGrid to display an error log, and I would like to be able to copy stack trace information and drop it into an error report or email.

Thanks.

+6
flex copy-paste datagrid
source share
3 answers
+3
source share

So, after reading an article published by Mike Sickler. I found a few more posts about copying from Flex (and Flash). See here and here . It seems like the best way is to create a hidden div on the page where you put the copied text in Ctrl + C and then putting it on the clipboard.

+1
source share

Hans Muller provided an excellent post and sample code on how to do this using Spark DataGrid

http://hansmuller-flex.blogspot.com.au/2011/10/datagrid-support-for-copy-and-paste.html

+1
source share

All Articles