selectedIndex should work after the dataprovider has been updated. To see the selected row if it is offscreen, call scrollToIndex()
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bloodylag Sent: Tuesday, April 15, 2008 6:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] SelectedIndex In A Datagrid Hey, I have a datagrid which fills out with info via a JSON request. I want to be able to automatically select a row on events that the application throws itself (the datagrid isn't selectable to the user). I have tried to use selectedIndex to no avail. All attempts using validateNow() etc aren't working. The dataprovider is an arraycollection with 2 fields. Any ideas would be greatly appreciated