Another way is to cast the list data to DataGridListData I.E.

DataGridListData(listData).rowIndex 
or
DataGridListData(listData).coulmnIndex

Dustin Mercer

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Friday, March 10, 2006 1:51 PM
To: [email protected]
Subject: Re: [flexcoders] rowIndex & columnIndex while rendering in Flex 2.0

On 3/10/06, stchavan <[EMAIL PROTECTED]> wrote:

> In Flex 2.0, we can get rowIndex and columnIndex for a datagrid cell,
> when it is being edited, by using event.rowIndex and event.columnIndex
> (where event is a DataGridEvent like cellBeginEdit, cellEndEdit etc.)
> Similarly, how can we retrieve the rowIndex and columnIndex, when a
> cell is being rendered for the first time?

 ListBase(listData.owner).getItemIndices()

I'm not sure it's a public, documented method in Beta 1 (or even Beta
2), but it's the one to use basically.

Manish


--
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