The safest way would be to loop over the dataProvider, checking the value of the property that drives the checkbox state, and build an array of indexes that are checked. Then assign that to the data grids selectedIndices property,
If you could be sure to never get "off", you could manipulate the selectedIndices array directly. Tracy Spratt Lariat Services Flex development bandwidth available ________________________________ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markflex2007 Sent: Friday, January 30, 2009 3:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: checkbox itemEditor in DataGrid The link can make select multiple rows,but how to make the all the selected rows highlighted. Thanks Mark http://blogs.adobe.com/aharui/CheckBoxDataGrid/CheckBoxDataGridApp.swf <http://blogs.adobe.com/aharui/CheckBoxDataGrid/CheckBoxDataGridApp.swf>