Man, I have to ask, how did you come up with a custom DataGridColumn component 
solution, that uses an inline itemRenderer?  You're not doing anything crazy 
with the headerRenderer, so why not just create a custom itemRenderer instead?

-TH

--- In [email protected], "valdhor" <valdhorli...@...> wrote:
>
> Use a sortCompareFunction 
> (http://livedocs.adobe.com/flex/3/langref/mx/controls/dataGridClasses/DataGridColumn.html#sortCompareFunction)
> 
> 
> --- In [email protected], "kpjj31" <joe.g.james@> wrote:
> >
> > How would I go about sorting a datagrid taht has one column.
> > This column has an item renderer.
> > 
> > <mx:DataGridColumn headerText="Enrolled By" dataField="FNAME" 
> > id="enrolled_header">
> >                                     
> > <mx:itemRenderer>
> >                                     
> > <mx:Component>
> >                                             
> > <mx:VBox verticalGap="-3" paddingLeft="15">
> > 
> > <mx:Label text="{outerDocument.setEnrolledByName(data.ENROLLADMITBYINFO 
> > .FNAME,data.ENROLLADMITBYINFO .LNAME)}" useHandCursor="true" 
> > buttonMode="true"  mouseChildren="false" disabledColor="#666666" 
> > fontWeight="normal"/>
> > 
> > <mx:Label text="{data.ENROLLADMITBYINFO.JOBTITLE}" useHandCursor="true" 
> > buttonMode="true"  mouseChildren="false" disabledColor="#666666" 
> > fontWeight="normal" />
> > 
> > <mx:Label text="{data.ENROLLADMITBYINFO.DEPARTMENT}" useHandCursor="true" 
> > buttonMode="true" fontWeight="normal" mouseChildren="false" 
> > disabledColor="#666666" />
> > 
> > <mx:Label text="{data.ENROLLADMITBYINFO.LOCATION}"  useHandCursor="true" 
> > buttonMode="true" fontWeight="normal" mouseChildren="false" 
> > disabledColor="#666666"/>
> > 
> > <mx:Label text="{data.ENROLLADMITBYINFO.REGION}"  useHandCursor="true" 
> > buttonMode="true" fontWeight="normal" mouseChildren="false" 
> > disabledColor="#666666"/>
> > 
> > </mx:VBox>
> >                                             
> > </mx:Component>
> >                                             
> > </mx:itemRenderer>
> >                                     
> > </mx:DataGridColumn>
> >
>


Reply via email to