Hello Group
I would like to select an Editor for each cell in my DataGrid
depending on other data values that might be in the same row.
I believe I can use the itemEditBegin event to assign and create my
chosen editor. I've got this far and I'm well stuck.
I know the following doesn't work - I just posted it to show that I am
trying :-)
Any assistance greatly appreciated!
private function onItemEditBegin(event:DataGridEvent):void
{
var dgc:DataGridColumn;
dgc =
event.currentTarget.columns[event.currentTarget.editedItemPosition.columnIndex];
if (dgc != null)
{
dgc.itemEditor = IFactory(mx.controls.NumericStepper);
event.currentTarget.createItemEditor();
}
}