<mx:DataGridColumn labelFunction="sortSerial" headerText="Sl no" />
我已经在Datacolumn部分声明如何编写自动增量序列号?
答案 0 :(得分:0)
private function sortSerial(oItem:Object,iCol:int):int
{
var iIndex:int = ac.getItemIndex(oItem) + 1;
return int(iIndex);
}