var o:Object = new Object; o = grid1.getChildAt(3); o.addEventListener(DragEvent.DRAG_ENTER,allowDrop); o.addEventListener(DragEvent.DRAG_DROP,acceptDrop);
works but seems an inelegant way of accessing header - is there a better way? Next question :-) The grid header that is dropped on is referenced by var dropTarget:Object = dragEvent.currentTarget; but I cannot find the actual header column that was dropped on as dropTarget = the complete header. Does this mean that I am going to have to code a custom header with individual custom header item renderers that receive drops? TIA, Mic. --- In [email protected], "MicC" <chigwel...@...> wrote: > > To do this I think I need to set events DragEvent.DRAG_ENTER, > DragEvent.DRAG_DROP on the dataGridHeader. I have a reference to the grid, > but cannot get to its header! I am looking for the correct actionscript for > > grid.dataGridHeader.addEventListener( DragEvent.DRAG_ENTER, gridDrop ); > > Unless I am on the wrong track here :-) TIA, > > Mic. >

