<!--DGCRenderer.mxml-->
<mx:Label xmlns:mx="http://www.adobe.com/2006/mxml" selectable="true"
click="handleClick()">
<mx:Script>
<![CDATA[
private function handleClick():void
{
CustComponent(listdata.owner).showPopUp(this.data);
}
]]>
</mx:Script>
</mx:Label>
<!-- inside the datagrid in the CustComponent -->
<mx:DataGridColumn dataField="name" headerText="Name" itemRenderer="DGCRenderer"/>
<mx:Script>
<![CDATA[
public function showPopUp(item:Object):void
{
var p:PopUpClassName = PopUpManager.createPopUp(this, PopUpClassName);
p.setItem(item);
}
]]>
</mx:Script>