Your requirement is not so clear. But according to my understanding, On change of combo you need to show Yes in Active column for all of rows,
one way is you need to iterate dataGrid's dataProvider & set dataGrid.dataProvider.getItemAt(cnt).vendorActive = combo.selectedItem.label; & I thinks storing this information per row will be redundant.
Once you retrieve from database you have to process your data provider, to show 'yes' when you get 1 and then pass that data to your data grid.
I'm not certain I'm interpreting your question correctly either, but I think might looking for labelFunction, which would let you display a "Yes" or "No" in the datagrid while the actual data is a 1 or a 0.
private function vendorActiveLabel(item:Object,column:DataGridColumn):String
if (item.vendorActive == 1)
<mx:DataGridColumn width="100" textAlign="center" headerText="Active" labelFunction="vendorActiveLabel" />
Thanq.How it is doing for combobox?
How do you customize what a combobox shows when you provide it a list of objects?
Inside the ComboBox mxml tag you could use:
(replace label with the name of the field containing the data you want to display)
Or for more complex requirements (say you want to interpret the data and display some other text to the user that isn't in the data):
(works the same way as the datagrid labelFunction, you'd need to write a label function)
In your case for the ComboBox, I think you would want to use labelField="label" because for a dataProvider you're giving a list of objects with a "label" property that contains the strings you want to display.