Thanks for taking the trouble to respond -- unfortunately none of these seem to work.
I created a really simple example -- this is attached. Just in case the attachment doesn't come through, I have "cut and pasted" the entire mxml file below. I tried the following -- neither of these allows me to center the radio button *and* have the radio buttons act as a group. 1) Ran the attached file -- buttons are centered but they dont act as a RadioButtonGroup 2) Deleted the RadioButtonGroup sameGroup and replaced the groupName from {parentApplication.sameGroup} to just sameGroup -- buttons are not centered but they act as a group. thanks sai File sample.mxml <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ [Bindable] public var someData:Array = [ {id: "1" , emp: "Steve" }, {id: "2" , emp: "James" }, {id: "3" , emp: "Curt" }, {id: "4" , emp: "Leslie"}, {id: "5" , emp: "Amare"} ]; ]]> </mx:Script> <mx:RadioButtonGroup id="sameGroup" /> <mx:DataGrid id="resultGrid" dataProvider="{someData}"> <mx:columns> <mx:DataGridColumn dataField="itemType" width="60" headerText=""> <mx:itemRenderer> <mx:Component> <mx:HBox paddingLeft="5" paddingRight="5" verticalAlign="middle" horizontalAlign="center"> <mx:RadioButton groupName="{parentApplication.sameGroup}" value="{data.emp}"/> </mx:HBox> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> <mx:DataGridColumn dataField="id" width="120" headerText="" /> <mx:DataGridColumn dataField="emp" width="200" headerText="" /> </mx:columns> </mx:DataGrid> </mx:Application> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- "I have always been regretting that I was not as wise as the day I was born." - Thoreau -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ [Bindable] public var someData:Array = [ {id: "1" , emp: "Steve" }, {id: "2" , emp: "James" }, {id: "3" , emp: "Curt" }, {id: "4" , emp: "Leslie"}, {id: "5" , emp: "Amare"} ]; ]]> </mx:Script> <mx:RadioButtonGroup id="sameGroup" /> <mx:DataGrid id="resultGrid" dataProvider="{someData}"> <mx:columns> <mx:DataGridColumn dataField="itemType" width="60" headerText=""> <mx:itemRenderer> <mx:Component> <mx:HBox paddingLeft="5" paddingRight="5" verticalAlign="middle" horizontalAlign="center"> <mx:RadioButton groupName="blah" value="{data.emp}"/> </mx:HBox> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> <mx:DataGridColumn dataField="id" width="120" headerText="" /> <mx:DataGridColumn dataField="emp" width="200" headerText="" /> </mx:columns> </mx:DataGrid> </mx:Application>