Hmm, strongly typed objects or not, the DataGrid should behave the same; as long as you're not using selectable="false". Are you sure it's not something else? Are you doing something on the "change" event?
-TH --- In [email protected], "Andrew Longley" <[EMAIL PROTECTED]> wrote: > > I expect that when I click on a row in a datagrid, the item gains the > "selected" row highlight. I'm developing an Air app and my datagrid > does not act this way. After much messing around I discovered that, > everything else being the same, if I changed the dataProvider of the > datagrid the behavior of the datagrid changed. > > 1. if the dataProvider is an ArrayCollection of untyped objects, i.e., > {name:"blah",phone:"1231231234"}, it performs as expected, i.e., when > you click on a row it gains the "selected row" highlight > > 2. if the dataProvider is an ArrayCollection of typed objects, i.e., > User objects with name and phone attributes, it performs differently. > While the datagrid knows that a row is selected, the selected row > looks as if it is unselected. > > Now it is slightly more complicated in that the User object extends > another base class and both use the Bindable metadata tag and are > RemoteClassed to Java objects on the server, and have another 30 > attributes.. but I'm still stymied. Anyone have a suggestion for a > work-around besides creating untyped objects for every object at > runtime? What would the code look like to force a selected style to > show up for the selected row? > > Thanks. > Andrew >

