Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-03-2008, 11:07 PM   #1
Join Date: Apr 2002
Posts: 75
Send a message via AIM to nubian
Question Help with Datagrid

let's say i have a datagrid on stage.
it's made up of three columns First, Middle and Last.

my question is how do i populate all of the names(cell text values) from the datagrid to a var so that it reads like this, for example: john doe, jane doe, joe doe?

ActionScript Code:
var my_grid:mx.controls.DataGrid; // sample datagrid my_grid.addItem({First:'John', Middle:'Lee', Last:'Doe'}); my_grid.addItem({First:'Jane', Middle:'Jill', Last:'Doe'}); my_grid.addItem({First:'Jack', Middle:'Joe', Last:'Doe'}); addBtn.onRelease = function() {     var names:Object = //..some code here to populate all their names from datagrid into a format like this: john doe, jane doe, joe doe;         trace(some var with populated names from datagrid); };

please help, any help will be greatly appreciated.
nubian is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you create a DataGrid soley in code using new DataGrid(); frank grimes Components 3 04-16-2007 07:31 AM
Proper way to bind data to the DataGrid component - Best practices. andrea_muta Components 1 04-03-2007 09:13 AM
Datagrid Scrolling bug? Column repeats over and over while mouse is pressed... diesel5599 Components 2 12-18-2006 04:34 PM
Datagrid positional scrolling vaene Components 0 05-13-2006 01:38 AM
Please help loading data/ datagrid ericb1 Components 1 11-22-2005 07:26 PM

All times are GMT. The time now is 07:31 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.