<?xml version="1.0" encoding="utf-8"?>
<mx:LinkButton xmlns:mx="http://www.adobe.com/2006/mxml"
	fontWeight="normal"
	textDecoration="underline"
	click="clickLinkButton(event)">
	<mx:Script>
		<![CDATA[
			import mx.controls.Alert;
			import mx.events.ListEvent;
			import mx.controls.dataGridClasses.DataGridListData;
			import mx.collections.XMLListCollection;

			private var _ownerData:XML;
						
			override public function set data(value:Object):void {
				label = listData.label;
				if(value){
					_ownerData = value as XML;
//					var col:DataGridListData = DataGridListData(listData);
//					var cname:String = value[col.dataField];
//					var cvalue:String = value[col.dataField].@value;					
				}
			}

			override public function get data():Object
			{
				return _ownerData;
			}

			private function clickLinkButton(event:MouseEvent):void {
				if (listData is DataGridListData) {
					var gridListData:DataGridListData = listData as DataGridListData;
					Alert.show(label + " " + gridListData.rowIndex + " " + gridListData.columnIndex);
				}
			}
						
		]]>
	</mx:Script>
</mx:LinkButton>
