Tom, Thanks for replying.
I think found a workable solution to my problem, which was the need to have the itemrenderer know its position it was in relation to the hierarchicalCollectionView that is used by an advancedDataGrid. I was trying to use an itemrenderer that would hide a "remove" button if it was the 1st child in a branch. Here's my solution code: override public function set data( value:Object ) : void { super.data = value; var temp:* = listData.owner; var dh:HierarchicalCollectionView = temp.hierarchicalCollectionView as HierarchicalCollectionView; var cursor:IHierarchicalCollectionViewCursor = dh.createCursor() as IHierarchicalCollectionViewCursor; var isFirst:Boolean = true; while(!cursor.afterLast) { var node:Object = cursor.current; if(node.mx_internal_uid == value.mx_internal_uid){ var myBookmark:CursorBookmark = cursor.bookmark; cursor.seek(myBookmark, -1); var previousNodeDepth:int = cursor.currentDepth; if (previousNodeDepth == 2) { isFirst = false; break; } cursor.moveNext(); } removeButton.visible = isFirst; } I would greatly appreciate anyone's comments and/or suggestions on this solution. Thanks, Adrian --- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Monday 02 Jun 2008, Adrian Gillette wrote: > > But I having a problem with trying to determine whether a cell in the > > advanced datagrid is the 1st child. Does anyone know of a good solution? > > You mean it's rendering the first row's first column ? > > > -- > Tom Chiverton > > **************************************************** > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. >