When a sort is applied, the datagrid asks the sort to find the object. It must not be finding the object somehow. Do you have a simple test case you can post?
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, April 11, 2008 7:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] testing object equality in datagrid AFTER sort Hi, I have a datagrid with selectable set to false. I'm listening for a double click event which then executes the following: dg.selectedItem = e.itemRenderer.data; This works fine when the datagrid is first loaded. After I sort the datagrid, the same line of code always results in dg.selectedItem being set to null. My working theory is that there's some effect on object equality occurring with the sort?? Reference http://blog.iconara.net/2007/11/25/architectural-atrocities-part-8-is-th ere-no-equality/ <http://blog.iconara.net/2007/11/25/architectural-atrocities-part-8-is-t here-no-equality/> I've tried implementing the IUID interface as suggested by Adobe but with no luck. Does anyone have any solution or ideas to point me in the right direction? Thanks, Amy