Using itemClick solves part of the problem.

Clicking on the scroll bar does not trigger the event. But clicking a
column header does trigger the event.

Andrew

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Try using the 'itemClick' event.
> 
>  
> 
> - Gordon 
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of greenfishinwater
> Sent: Friday, November 17, 2006 11:45 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] DataGrid Click event - unexpected results
> 
>  
> 
> I have a grid, and a click event defined. On a click on a row, I
> determine the row using selectedIndex, then I display data in another
> grid on a different tab depending on a product id from the selected row.
> 
> This works fine, except when I click in the header or the scroll bar
> of the grid, the click event gets fired, when obviously I was not
> wanting that to happen.
> 
> I tried the change event, but that only recognizes changes in the row,
> so does not allow the same row to be clicked a second time.
> 
> Is there any way to only capture a click on a data row?
> 
> Thanks
> 
> Andrew
>



Reply via email to