Thanks Jeff, that's the working piece of cake!!

--- In [email protected], Jeff Tapper <[EMAIL PROTECTED]> wrote:
>
> Do you mean by the index of the column or index of the row?
> 
> Within the row of the selectedItem, you could get the values of each
column 
> doing something like this (note, this is written in email client,
not FB, 
> so typos are not only possible, they are likely):
> var row:Object = dg.selectedItem;
> var cols:Array = dg.columns;
> for(var i:int=0;i<columns.length;i++){
>          var col:DataGridColum = dg.columns[i];
>          var colProp:String = col.dataField;
>          var thisColsVal = row[colProp];
> }
> 
> At 12:50 PM 7/30/2006, howardescholz wrote:
> 
> >Would selectedIndex work?
> >--- In [email protected], "ddanone2" <nomejodas836@> wrote:
> > >
> > > I fill the DataProvider of a DataGrid with an array, when the user
> > > selects a row i retrieve the selected row with selectedItem
property.
> > >
> > > I want to get the value of each column not acessing by the dataField
> > > but acessing by an index, is that possible ?
> > >
> > > Thanks in advance
> > >
> >
> >
> >
> >
> >
> >
> >
> >--
> >Flexcoders Mailing List
> >FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >Yahoo! Groups Links
> >
> >
> >
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to