In the event handler, you can access the itemRenderer through the target or currentTarget properties. From there you can get at the "data" item object and thus get the index of the item(see the Collection api for the exact method).
But better to loop over the dataProvider and check the selected property every time. 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>