import mx.collections.ArrayCollection;
import mx.controls.DataGrid;
import mx.events.DragEvent;
import mx.managers.DragManager;
private function dragCompleteHandler(event:DragEvent):void {
if(event.action != DragManager.NONE) {
var grid:DataGrid = DataGrid(event.dragInitiator);
var data:ArrayCollection = ArrayCollection(grid.dataProvider);
var item:Object = event.dragSource.dataForFormat("items")[0];
for(var i:uint = 0; i < data.length; i++) {
if(data.getItemAt(i).emailId == item.emailId) {
data.removeItemAt(i);
break;
}
}
}
}