On 26 Jun 2008, at 12:02, fb6668 wrote: Hi. I have a datagrid component which has a dataProvider of an arraycollection of objects. I also have a variable "selectedItem", which holds an object that has been selected elsewhere in the application. What I need is, when I create my datagrid, to set the background colour of the row corresponding to this selectedItem object. So I guess I need to loop through the dg's rows, comparing the dataItem of the row to selectedItem. However, I don't know how to loop the rows in a DataGrid?? It's so easy in C#.NET, and not here, so I think I may be approaching this from the wrong angle. Any ideas? Thanks!
Can you do a getItemIndex() and getItemAt() afterwards. That is unless
there is a better way.
- [flexcoders] selecting a pre-determined row in a datagrid fb6668
- Re: [flexcoders] selecting a pre-determined row in a data... Chris Ivens
- [flexcoders] Re: selecting a pre-determined row in a data... bray_6

