datagrid中显示带下划线链接的列表数据
public function linkButtonClick(event:MouseEvent):void{
????var o = event.currentTarget;
????var obj:Object = (((o as Label).parent.parent) as DataGrid).selectedItem;
????sheetid=(obj.sheetId) as String;????
????if(sheetid!=null){
?????var url:String="../../sps/sheet/undoSheetDetail.action?sheetId="+ sheetid;?????//?Alert.show(url);
?????var javaeyeUrl:URLRequest = new URLRequest(url);
?????
?????navigateToURL(javaeyeUrl,"_self");
????}
???}
?
?
<mx:DataGrid id="dg"? width="100%" doubleClickEnabled="true"? creationComplete="show(event)" height="100%" rowCount="100">
?????<mx:columns >
??????<mx:DataGridColumn id="sheetId" headerText="ID" dataField="id" visible="false">
???????
??????</mx:DataGridColumn>
??????<mx:DataGridColumn? headerText="工单号" dataField="sheetId">
???????<mx:itemRenderer>
????????<fx:Component>
?????????<!--<mx:Label toolTip="双击查看工单" useHandCursor="true"? doubleClickEnabled="true" doubleClick="outerDocument.label1_clickHandler(event)">
?????????</mx:Label>-->
?????????<mx:Label buttonMode="true" mouseChildren="false"
???????????? click="outerDocument.linkButtonClick(event)"
???????????? htmlText="<u>{data.sheetId}</u>">
?????????</mx:Label>
????????</fx:Component>
???????</mx:itemRenderer>
??????</mx:DataGridColumn>
?</mx:columns>
</mx:DataGrid>