It may solve your problem
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
[Bindable]
public var ac:ArrayCollection=new
ArrayCollection([{userPassword:'ss',userId:1},
{userPassword:'dd',userId:2}
]);
public function valueCheck(event:Event, chk1:Object):void
{
if(chk1.selected)
{
Alert.show("Hi I am selected");
}
if(!chk1.selected)
{
Alert.show("Hi I am not selected");
}
}
]]>
</mx:Script>
<mx:DataGrid id="dg2" dataProvider="{ac}" x="116" y="46">
<mx:columns>
<mx:DataGridColumn headerText="Password" dataField="userPassword"/>
<mx:DataGridColumn headerText="UserId" dataField="userId"/>
<mx:DataGridColumn headerText="Please Select">
<mx:itemRenderer>
<mx:Component>
<mx:VBox>
<mx:CheckBox id="chk" change="outerDocument.valueCheck(event,chk)"/>
</mx:VBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
</mx:Application>
--
Venky
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.