Setting datagrid.selectedIndex = 0 works for me, but I set it in a doLater() call after my grid's dataProvider has been initialized.
Also, unless I'm mistaken, the focus gained by calling setFocus() and the selected row of a datagrid are two separate concepts. At least that's how I'm interpreting what I see when I press the Tab key in a TitleWindow that contains a datagrid along with other components. Doug --- In [email protected], "dave7273" <[EMAIL PROTECTED]> wrote: > > I want to select a button, then afterwards, I want the first item in a > datagrid to be selected. > > I've tried doing something like myDataGrid.selectedIndex = 0 , and it > works momentarily (you can see the row get selected) then it loses the > selection. > > If I use a setFocus() call, it sets focus on the entire dataGrid and > not the specific row. Is there a comparable setFocus method on a > specific row? > -- 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/

