views:

665

answers:

1

Hello!

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!

A: 

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

adamcodes
Works great, thanks !
klen
Awesome. Interestingly I've never had to do that.
adamcodes