I had the same problem, and solved it by testing the event "rowIndex".
The rowIndex #0 is for the header, so I just skip my job :
(_itemClick is my handler)

private function _itemClick(evt:ListEvent) : void
{
  if (evt.rowIndex == 0)
    return;
  // do sth
}

Yan


--- In [email protected], "pdflibpilot" <[EMAIL PROTECTED]> wrote:
>
> I have a dataGrid that I have set an itemClick event to launch a popup
> canvas as an editor for the line item clicked. The dataGrid is set to
> "editable"  but each column is set to noneditable to prevent the cell
> from being edited directly.
> 
> Everything works well for the editing the line items however if I
> click on a column header to sort it also launchs my itemClick event
> (editor). How can I prevent this ??
> 
> Not having much luck trapping the event source since both header
> clicks and line item clicks return the same event.target.
>


Reply via email to