开发者

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 numberi开发者_如何学Gong for each populated row (e.g. in a column called "#").

Thanks!


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜