问题
mx:DataGrid has a property called "labelFunction". I'm migrating my datagrid to Spark, but it doesn't have this property. How should I replace this functionality?
回答1:
Use the labelFunction property on the GridColumn class.
I'll point out, you would have used the same approach w/ the MX DataGrid. The labelFunction was a property on the DataGridColumn class; not on the DataGrid.
来源:https://stackoverflow.com/questions/6029922/what-is-the-replacement-for-labelfunction-in-spark-datagrid