1
votes

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!

1

1 Answers

1
votes

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