For a recent project I needed a way to create a ComboBox in a DataGrid component that was populated by an XML file. I found an older example by Brendan Meutzner that used an ArrayCollection.
This was a good starting point, so I modified and added to the file to create an example that uses a ComboBox, CheckBox, and NumericStepper within the DataGrid and populated by an external XML file. The real trick is getting the XML file to be updated when changes to the itemRenderer occurred.
This is where Brendan’s example helped the most. Using the editorDataField and renderIsEditor properties of the DataGridColumn, the changes to the itemRenderer were able to update the dataField and the XML file itself.
Another trick I found interesting was making the the value or selected values of the NumericStepper and CheckBox components Bindable within the itemRenderer code. You can review the complete file and source code below.