Home > php教程 > PHP开发 > body text

Flex DataGrid autonumbering example

高洛峰
Release: 2016-12-27 17:16:05
Original
1024 people have browsed it

<mx:DataGridColumn headerText="序号" labelFunction="lfRowNum" />
Copy after login
//dg自动编号 
private function lfRowNum(oItem:Object,iCol:int):String 
{ 
var iIndex:int = statistidgCla.dataProvider.getItemIndex(oItem) + 1; 
return String(iIndex); 
}
Copy after login

For more articles related to Flex DataGrid automatic numbering examples, please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!