That's a little closer than what I was trying (adding a Shape to the list of children), but it still has one problem: The column separator pixels break up the line.
--- In [email protected], "Pan Troglodytes" <[EMAIL PROTECTED]> wrote: > > Yeah, I think your could subclass it and override updateDisplayList for what > you're needing. Check this out and see if it does what you need: > > package nes > { > import mx.controls.advancedDataGridClasses.AdvancedDataGridHeaderRenderer; > > public class AdvancedDataGridHeaderRendererExt extends > AdvancedDataGridHeaderRenderer > { > override protected function updateDisplayList (unscaledWidth:Number, > > unscaledHeight:Number):void > { > super.updateDisplayList(unscaledWidth, unscaledHeight); > > graphics.moveTo(0, unscaledHeight); > graphics.lineStyle(2, 0xFF0000); > graphics.lineTo(unscaledWidth, unscaledHeight); > } > } > } > > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > xmlns:nes="nes.*" > layout="vertical" > > > <mx:Script> > <![CDATA[ > import mx.collections.ArrayCollection; > [Bindable] private var d:ArrayCollection = new ArrayCollection ([ > {value: 1, summaryRow:false}, > {value: 2, summaryRow:false}, > {value: 3, summaryRow:false}, > {value: 4, summaryRow:false}, > {value: 5, summaryRow:false}, > {value: 6, summaryRow:false}, > {value: 21, summaryRow:true} > ]); > ]]> > </mx:Script> > > <mx:AdvancedDataGrid dataProvider="{d}" height="100%"> > <mx:columns> > <mx:AdvancedDataGridColumn dataField="value" headerText="title"> > <mx:headerRenderer> > <mx:Component> > <nes:AdvancedDataGridHeaderRendererExt horizontalAlign="right"/> > </mx:Component> > </mx:headerRenderer> > </mx:AdvancedDataGridColumn> > </mx:columns> > </mx:AdvancedDataGrid> > </mx:Application> > > > On Mon, Sep 15, 2008 at 4:48 PM, whatabrain <[EMAIL PROTECTED]> wrote: > > > Thanks! That fixed most of my problems, and could fix my "sort arrow" > > problem when I get to it. > > > > But I'm having an absurd amount of trouble drawing a thick horizontal > > line under the headers. The best I could do was add a Shape object to > > the display list in the header renderer, but that had gaps in it > > where the header separators were, and interacted very poorly with > > word wrap.

