Yes. If your item renderer implements the
mx.controls.listClasses.IDropInListItemRenderer interface you can get to
the column like this:

public function set listData(value:BaseListData):void
{
  // for a DataGrid the passed in data is of type
  // mx.controls.dataGridClasses.DataGridListData
  var column:DataGridColumn =
DataGridColumn(DataGrid(value.owner).columns[DataGridListData(value).col
umnIndex]);
}

Dirk.


________________________________

      From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of B.Brey
      Sent: Thursday, April 20, 2006 4:45 PM
      To: [email protected]
      Subject: RE: [flexcoders] Custom itemrenderer in datagrid
     
     
      Well i need the data for the current cell. Is there any way to
find out which column is the current column rendered?
     


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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to