Subclass. The styleName of the TextInput is set after ITEM_EDIT_BEGINNING. If you subclass you can change the styleName in commitProperties.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben Marchbanks Sent: Monday, March 31, 2008 5:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Set Style of default itemEditor I am using the default TextInput itemEditor for a data grid and not having much luck changing its style. Currently its inheriting the text color from its parent (titleWindow) which is #ffffff. I have tried .... event.currentTarget.editedItemRenderer.setStyle("color","#000000"); and... TextInput(tocDG.itemEditorInstance).setStyle("color","#000000"); and.... event.currentTarget.editedItemRenderer.styleName = "textEditor"; and ... TextInput(tocDG.itemEditorInstance).styleName = "textEditor" ; none of these work - what's the proper solution ??