Flex DataGridColumn ID missing?

I am dynamically creating a Datagrid in AS3. In MXML, it is permissible to write:

mx:DataGridColumn dataField="abc" id="testColumn"

      

in AS3, however I cannot use the id property, it was not found. Any ideas?

var dgc : DataGridColumn = new DataGridColumn();
dgc.id = "testColumn"; (NOT WORKING)

      

Thanks Martin

+2


source to share


1 answer


The identifier is not a real property, it is just a way of defining a variable name in mxml. Therefore in your case the identifier is "dgc".



What are you trying to achieve, by the way?

+3


source







All Articles