how to get data from a datagrid or list without selection

Posted on 2008-11-13
Last Modified: 2013-11-05
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.
Question by:thegroover
    1 Comment
    LVL 1

    Accepted Solution

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now