Thanks for the reply. I was able to figure out what the problem was (at least what I think it was).
The drawRowBackground method in the Datagrid class was somehow getting called twice after processing all the data that I mentioned. In the first call, it set the highlight color correctly for the selected rows. In the second call, it cleared the highlight colors out. Now, I'm stuck in Flex 2 for this project but I did some digging in the Flex 3 code (which is how I found this). I made some changes to the method from Flex 3 to make it compatible with Flex 2 and added some logic to simply grab the selectionColor and manually apply it in the rows with selected items. About your drawSelectionIndicator suggestion, it was being called and seemed to be working but the drawRowBackgrounds() method got called after that which somehow lost the selectionColor and cleared it out. Thanks for your help. I hopefully have a working solution now. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 -----Original Message----- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Tuesday, May 19, 2009 8:06 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DataGrid highlight issues Try setting selectedIndex=-1 before you reset it to the correct values. Maybe it thinks certain rows already are drawn? You can set a breakpoint in drawSelectionIndicator to see if it is trying to draw Alex Harui Flex SDK Developer Adobe Systems Inc. <http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jake Churchill Sent: Tuesday, May 19, 2009 1:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid highlight issues I have a simple datagrid with double clicking enabled. Double clicking runs a long process of getting a bunch of data. The datagrid itself is not affected by any of the data changes. After the process is done, it is impossible to select an item in the datagrid. The selectedIndex and selectedItem both get set, just the highlight is missing so the user doesn't know that the row they clicked is selected. I tried creating a custom datagrid class extending datagrid and trapping Item Click events and manually calling updateDisplaylist() but that did not help. If I click and use a modifier key (SHIFT or CTRL) the highlight works. Does anyone have any ideas of how to fix this? Thanks in advance. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com <http://www.cfwebtools.com> 402-408-3733 x103 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.34/2122 - Release Date: 05/19/09 06:21:00