Allen Manning wrote: >Custom cell renderer might be a bit OTT for this, labelFunction would be a >good start. > >
A cell renderer for an object path is reusable, whereas with using a label function you have to create a new function for each path. It may be over the top for this particular case, but it's a "once and done" thing. Example: <mx:DataGridColumn headerText="Department" columnName="user.department" /> <mx:DataGridColumn headerText="Primary Role" columnName="permissions.role.primary" /> <mx:DataGridColumn headerText="Username" columnName="user.username" /> All 3 of the above columns can use a single "label with a path" cell renderer, as opposed to having to create 3 different label functions to return the different paths individually. In a small project this probably isn't a big deal (maintaining a long list of label functions), but in a large project it could get cumbersome quickly. I agree that labelFunction is easier to create, but easiest isn't always best. :-) -d ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/ <*> 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/