1 Reply Latest reply on Jan 22, 2007 5:26 AM by peterent

    Select All items in a DataGrid


      I am trying to select all the elements in a datagrid on the double click event.

      public function bd_datagrid_DoubleClickHandler():void
      bookdetails.selectedItems = bd_xmlcoll.toArray();

      <mx:DataGrid id="bookdetails" dataProvider="{bd_xmlcoll}" doubleClick="bd_datagrid_DoubleClickHandler();".....

      where the dataprovider bd_xmlcoll is an XMLListCollection.

      However, doubleclicking in the grid does not initiate any change.

      Could you please help.

      Many Thanks,