开发者

Flex mx:DataGrid row index

开发者 https://www.devze.com 2022-12-12 04:37 出处:网络
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开发者_如何学Go

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

精彩评论

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