[mailto:[EMAIL PROTECTED] On Behalf Of helihobby
Sent: Monday, February 26, 2007 11:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Can anyone help on getting data from a
grid cell .. I know the row/column index
Thank you all
It's not usual to access data from the grid, you access data from it's
dataprovider that is normally either a ArrayCollection or a XML object.
Imagine your grid has the following data provider:
var xml:XML =
package
employee id=0 name=Michael/
employee id=1 name=Roger/
/package;
So you can
OMG i just realized I just gave you the reverse of
what you are asking for haha. my bad. anyway, try
using datagrid's indicesToIndex() method. It will
return the index (in your dataprovider)... I assume
you can then look up your dataprovider to determine
which item/prop/text is which? :)
I think my last lines are a bit vague and confusing.
It isnt the actual index in the dataprovider.. but
rather the offset in the data provider of properties
depending on how you have laid out your elements. So
the reliability of this method depends - needless to
say - your prior knowledge of how
4 matches
Mail list logo