How-To Copy and Paste Rows in Adobe Flex (Flash) DataGrid

Adobe Flex, including Flash, is an event based SDK. Its API includes intensive Event methods besides providing the APIs to create custom events. A subject that often comes up in blogs is how to copy and paste data in a DataGrid. Let me tell that nothing could be easier, without needing to create any custom events or elaborate classes or other extensive code.

I wrote this bit of code, which I use in many of my applications and which I would like to share with everyone and hopefully save them some time and frustration