Manish, Thanks for responding. We have written our own Filtering Data Provider, but I'm sure they are very similar.
I have found a work-around to the problem. If I set the selectedIndex property during the change event of the datagrid like this: <mx:DataGrid id = "dgItems" ... change=" dgItems.selectedIndex = dgItems.selectedIndex " then through forcing it to fire its bindings, it seems to help cure the datagrid's sickness. Although it does degrade the DG's performance slightly between selecting items. I guess my next step is to try your getItemId implementation and see if that has any effect. Thanks, al -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: 10 October 2005 17:52 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Datagrid bug, two rows selected at the same time. On 10/10/05, Allen Manning <[EMAIL PROTECTED]> wrote: > <mx:DataGrid > > … > > selectedIndex=" { helper.getSelectedIndexInDatagrid( mFilterProvider.filteredData ) }" > > 'filteredData' is a property of my filtering data provider. I databind to that so that the function gets called as the data comes in from the server side, or when client – side filtering happens. [...] > The data loads, the first item is selected and the selecteItem property of the view gets populated. If I try to select another row in the datagrid, the 0th selected row stays selected. Two rows highlighted at the same time. Note: the mutlipleSelect property is not set to true. I move my mouse over the 0th row and the selection disappears and all acts like normal. Are you using the FilteredDataProvider class that I had written? Sorry I've been so bad at supporting this. People have reported problems with DataGrid selection when a FilteredDataprovider is used. I don't have time to look into it right away, but here's a hint: you might want to look into the DataProvider class (which FilteredDataProvider extends). Last time I fixed a problem by overriding the getItemID method from the API, so see if that works for you. -- 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 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/128 - Release Date: 10/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/128 - Release Date: 10/10/2005 ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/