views:

533

answers:

3

Is there a way to select a single cell in a Flex DataGrid, and then either select the text inside of the cell, or select the entire cell for copy + paste? It doesn't even have to copy into an excel friendly format, flat text would be fine. So far, I have only been able to select an entire row, and that doesn't seem to copy very well. I am using a DataGrid to display an error log, and I would like to be able to Copy the stack trace information out and throw it in a bug report or an email.

Thanks.

+1  A: 

This works great for me: http://hillelcoren.com/2009/09/17/import-export-copy-paste-flex-datagrid/

Mike Sickler
+1  A: 

So after reading through the article Mike Sickler posted. I found some more posts on copying out of Flex (and Flash). See here and here. It looks like the best way is to create a hidden div on the page that you place your copied text into on Ctrl + C, and then putting that on the clipboard.

Rob Lund
A: 

For selecting a single cell, you can use selectionMode="singleCell". Coyinh cell,row,and grid data in tabular/excel paste format is something we also provide in our datagrid component, which is built on top of the Adobe control. http://www.flexicious.com

Flexicoius