?
Solved

how to get data from a datagrid or list without selection

Posted on 2008-11-13
1
Medium Priority
?
2,997 Views
Last Modified: 2013-11-05
hi,
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.
G
0
Comment
Question by:thegroover
1 Comment
 
LVL 1

Accepted Solution

by:
thegroover earned 0 total points
ID: 22948854
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.

G
0

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
I tried to use the SharePoint app to Import a Spreadsheet and import an Excel sheet into a Team site made in SharePoint 2016. But that just resulted in getting an error message 'Unknown Error'...
There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…
Suggested Courses
Course of the Month4 days, 16 hours left to enroll

601 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