import mx.events.DragEvent;
import mx.controls.Alert;
import mx.collections.ArrayCollection;
private function initApp():void {
srcgrid.dataProvider = new ArrayCollection([
{Artist:'A', Album:'AA', Price:1.99},
{Artist:'B', Album:'BB', Price:1.99},
{Artist:'C', Album:'CC', Price:1.99}
]);
destgrid.dataProvider = new ArrayCollection([]);
}
public function dragDropHandler(event:DragEvent):void {
var dragObj:Array= event.dragSource.dataForFormat("items") as Array;
for (var i:Number = 0; i < dragObj.length; i++) {
Alert.show(dragObj[i].Artist);
}
}