Hi, You can achieve this by just updating dataProvider and if design of yourCellRenderer in such a way that if dataProvider changes CellRenderer is updated.
Say you have a field in dataProvider, which is bound with checkbox's selected property. If you change the dataProvider, CheckBoxes get updated. -abdul -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shahnavaza Sent: Thursday, July 07, 2005 1:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] CheckBox in the DataGrid Hi All, I have a DataGrid with a checkbox rendered successfully using CellRenderer. My first problem is that how do I get the array of all Checked checkboxes on particular button Click. Secondly, I need to unCheck all checked Checkboxes on UnCheck button click. Following is the Snippet. Thanks for your response <mx:Script> <![CDATA[ import com.hmssoftware.sfm.dto.ActivityDTO; public var activities : Array; public var activity : ActivityDTO; public function unCheckAll() : Void { ?????? Need to get UnCheck All checkboxes } public function saveAll() : Void { ?????? Need to get all Checked checkboxes } ]]> </mx:Script> <mx:DataGrid id="activityDG" dataProvider="{activities}"> <mx:columns> <mx:Array> <mx:DataGridColumn headerText="%Complete" columnName="complete" /> <mx:DataGridColumn headerText="Assign" columnName="activityId" cellRenderer="com.software.view.activityview.CheckCellRenderer"/> </mx:Array> </mx:columns> </mx:DataGrid> <mx:ControlBar> <mx:Button label="Uncheck All" click="unCheckAll()"/> <mx:Button label="Save Assigned" click="saveAll()" /> </mx:ControlBar> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/