I possibly know how to change the name of the column in DataGrid using mxml but dont know how to change the name of column in DataGrid using ActionScript.
var newDataGrid:DataGrid=new DataGrid();
It takes the default names from arraycollection but I wanted to give any column names which I want through ActionScript.
Give your datacolumn and id. Then set the property for that column through the datacolumn id.
nameDC.headerText = "Name";
Hello Code Girl, thanks for replying. I'm trying it for mobile. your above code doesnt work for mobile.