sure, what I did was loop through the dataProvider of the grid and checked
for a match and when a match was found set the selected index of the grid.

now, I just need to get the scrollToIndex to work and all will be good.

On 12/22/06, Yiðit Boyar <[EMAIL PROTECTED]> wrote:

  can you please share your solution here...
thanks...

----- Original Message ----
From: Clint Tredway <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, December 22, 2006 7:00:35 PM
Subject: Re: [flexcoders] Re: manually adding items to a datagrid

 cool, I actually figured out a better way after I sent my question :)

thanks, I will keep that in mind if I need it in the future.

On 12/22/06, Doug Lowder <[EMAIL PROTECTED] com <[EMAIL PROTECTED]>>
wrote:
>
>   Hi Clint,
>
> If your grid's dataproivider implements List CollectionView (like
> ArrayCollection or XMLListCollection) , you can try:
>
> myGrid.dataProvider .addItemAt( oItem, nIndex);
>
>
> --- In [EMAIL PROTECTED] ups.com <flexcoders%40yahoogroups.com>,
> "Clint Tredway" <[EMAIL PROTECTED]> wrote:
> >
> > I need to manually loop through a collection and add each item to a
> > datagrid. However, I cannot seem to get this to work like adding
> items
> > to a combo box...
> >
> > any help would be appreciated.
> >
> > --
> > http://indeegrumpee .spaces.live. com/<http://indeegrumpee.spaces.live.com/>
> >
>
>


--
http://indeegrumpee .spaces.live. com/<http://indeegrumpee.spaces.live.com/>


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com




--
http://indeegrumpee.spaces.live.com/

Reply via email to