0

I have a DataGrid with 3 DataGridColumns. All 3 of them have separate dataFields.

I need to get the datafields into an ArrayCollection and pass it to a funciton. I dont want to hard code the ArrayCollection.

Is there any way to achieve this?

1 Answer 1

1

Something like this:

var dataFieldCollection : ArrayCollection = new ArrayCollection();
for each (dataGridColumn : DataGridColumn in dataGrid.columns){
 dateFieldCollection.addItem(dataGridColumn.dateField);
}

This is psuedo code I wrote in the browser.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.