<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" 
	layout="vertical">

	<mx:Script>
		<![CDATA[
		import mx.collections.ArrayCollection;
		
		[Bindable]
		private var productList:ArrayCollection;
		
		[Bindable]
		private var selectedItem:ArrayCollection;
		
		private function onClick(e:MouseEvent):void {
			trace("In Handler");
			selectedItem = e.currentTarget.selectedItem.features.feature;
			features_list.dataProvider = selectedItem;
		}
			
		]]>
	</mx:Script>
	
	<mx:DataGrid id="products_dg" 
		dataProvider="{productList}" 
		width="100%" 
		height="70%"
		click="onClick(event)" />

	<mx:Text text="Features" />
	<mx:List  id="features_list" 
		width="100%"
		height="30%"
		/>
	
</mx:Panel>
