Anyone from Adobe please comment? here's a little test example. All you need to do is change the dg attribute sortableColumns=false | true.
and double click the header. i believe the itemDoubleClick event should not be triggered when sortableColumns=false <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:DataGrid doubleClickEnabled="true" itemDoubleClick="mx.controls.Alert.show('item double clicked')" sortableColumns="false"> <mx:dataProvider> <mx:Array> <mx:Object Company="a" Contact="1"/> <mx:Object Company="b" Contact="2"/> <mx:Object Company="c" Contact="3"/> </mx:Array> </mx:dataProvider> <mx:columns> <mx:DataGridColumn dataField="Company" /> <mx:DataGridColumn dataField="Contact" /> </mx:columns> </mx:DataGrid> </mx:Application> --- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote: > > i have a datagrid with the following attributes. > > <mx:DataGrid doubleClickEnabled="true" sortableColumns="false" > itemDoubleClick="mx.controls.Alert.show('item double clicked')"> > > i'm finding that if i doubleClick the header, i'm getting the > itemDoubleClick evnt being trigged. > > > is this the correct behaviour. > > (i'd assume not) > > please verify > > > regards > bod > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/