Could you try to declare the double click event on the datagrid, i.e.

<mx:DataGrid id="myDataGrid" doubleClick="yourDoubleClickFunction()">
  <mx:columns>
    .........
  </mx:columns>
</mx:DataGrid>

and in your script, declare the function 

private function yourDoubleClickFunction():void
{
    // Place your codes here.. 
}

HTH.




________________________________
From: ferrari.hunk <[email protected]>
To: [email protected]
Sent: Wednesday, 9 September, 2009 22:43:28
Subject: [flexcoders] Double click on Datagrid cell

  
Hi,

I'm developing an application where I'm using a datagrid that shows some 
information from an xml. Every cell in the grid is of the form
<itemRenderer>
<compoment>
<Vbox>
<HBox>
<Text/> //some text goes within this block
<Text/> //some text goes within this block
<Text/> //some text goes within this block
</Hbox>
</VBox>
</component>
</itemRenderer>

I have set a function call for the datagrid on ItemDoubleClick event; and this 
even gets triggered only when i double click on any TEXT that is on the cell; 
and NOT on any part of the cell. However, I would like to have this triggered 
when the user clicks anywhere in the cell.
Sombody please help,

Thanks!!





      

Reply via email to