how to get data from a datagrid or list without selection

I have 2 datagrids, the first has items which can be drag&dropped into the second. Now i have 2 problems.
1. how can i get the items from the second grid? in the past i used selectedIndex, but in this case i do not have any item selected, i just need the list of items from the second grid without making a selection.
2. how can i delete the items from the second grid? i tried setting the dataProvider to "" , but an empty row remained at the top.

isn't there any grid.items[x].clear or grid.getItemAt() or grid.items.count or anything similar in actionscript?

any help would be appreciated.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

thegrooverAuthor Commented:
got it,
i used grid2.dataprovider.length and cycled through the items to get them, then i used grid2.dataprovider = null to delete all data from the grid.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Flex

From novice to tech pro — start learning today.