I've found a really nice feature in Flex 2. I have a datagrid with several rows, and one of the columns has an inline component itemrender which is a combobox. In my case, this datagrid represents a list of people, and the people have to be assigned to a department once they have been added to the list (so the deparment column is the combobox itemrenderer). If I delete a row in the datagrid, then add a new row, the new row's inline itemrender combobox for my department column is not set to the correct index, so while the data underneath (a default value for deparment) exists in the datagrid's dataprovider for this newly added row, the combo box shows a different value, usually the selected index of the another instance of that itemrenderer from another row in my datagrid :). I'm looking for a easy way from the datagrid to obtain a handle back to the itemrenderer for my department column for a given row. The dataGrid has a function called itemToItemRenderer, which you can call to receive back the itemRenderer for the FIRST column in the datagrid. I hate to HAVE to put my department column first in my datagrid just to get this to work. In trying this approach, I am able to get the reference to the itemrenderer and correctly set the selecteditem within the combobox, so I just need a better way to get there that doesn't require my first column in the datagrid to be this column. Does anyone have any ideas?
Thanks, rick -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/