How did you get "o"? For selectedItem(s) to work, o must be a reference pointing to an item in the dataProvider. Is that the case?
If so, try assigning the entire selectedItems array, rather than manipulating its elements individually. That is just a guess, but is the way you must handle the columns array in a dataGrid. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Wednesday, July 30, 2008 11:12 AM To: [email protected] Subject: [flexcoders] Re: Programmatically select items in AdvancedDataGrid Sorry. I missed a detail... I tried to do: grid.selectedItems.push(o). It did not cause the item to be selected. --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "fourctv" <[EMAIL PROTECTED]> wrote: > > You have 2 options, set either adg.selectedItems or adg.selectedIndices. > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "whatabrain" <junk1@> wrote: > > > > Another old question, I'm sure, but I can't find an answer anywhere on > > the web. > > > > How do I cause a row to be selected in an AdvancedDataGrid? Basically, > > when a top-level element is clicked, I want all of its child elements > > to be selected. > > >

