If your dataProvider is a Collection, you can use getItemIndex() In a
simple labelFunction():

 

private function lfRowNum(item:Object, column:DataGridColumn):String{
  return (this.acTest.getItemIndex(item).toString())
}

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of letterpigeon
Sent: Thursday, October 04, 2007 9:56 AM
To: [email protected]
Subject: [flexcoders] displaying row numbers in datagrid

 

Hi,

One of the columns in my datagrid contains some sort of UID and I want
to use a custom item renderer for this field so that it'll display 1,
2,...# of rows in the grid. Is there a way to achieve this?? Thanks.

Ban



 

Reply via email to