klen
klen

Reputation: 27

Flex mx:DataGrid row index

Is it possible to dynamically show row index for DataGrid rows ? I have a static ArrayCollection which is set to be DataGrid's data provider and I would like to always have row numbering for each populated row (e.g. in a column called "#").

Thanks!

Upvotes: 1

Views: 3353

Answers (1)

adamcodes
adamcodes

Reputation: 1606

Yes, create a labelFunction that returns the ArrayCollction's getItemIndex for the current object, plus 1. Example

Upvotes: 1

Related Questions