--- In [email protected], "whatabrain" <[EMAIL PROTECTED]> wrote:
>
> 
> I'm actually already hiding all the grid separators. Let me try to
> demonstrate what I mean visually...
> 
> This is what I want:
> [^] Group1
>     [ ] C1 C2 C3 C4 C5
>     [ ] C1 C2 C3 C4 C5
>     [ ] C1 C2 C3 C4 C5
> 
> 
> In the above picture, each item (C1,C2,etc) is in its own column, 
but
> the group name ignores those columns.
> 
> Because of the way columns are aligned, this is what I'm actually
> seeing:
> [^]G
>     [ ] C1 C2 C3 C4 C5
>     [ ] C1 C2 C3 C4 C5
>     [ ] C1 C2 C3 C4 C5
> 
> 
> The group name is cut off, because it doesn't fit in the very narrow
> first column. If I put the name in a wider column, it's indented too
> far.
> 
> So how do I make the group name span all five columns, giving it 
enough
> space to display?

>From the Help:

A renderer can span multiple columns. In the following example, you 
create a renderer that spans two columns:

<mx:AdvancedDataGrid>
    <mx:columns>
        <mx:AdvancedDataGridColumn dataField="Region"/>
        <mx:AdvancedDataGridColumn dataField="Territory_Rep" 
headerText="Territory Rep"/>
        <mx:AdvancedDataGridColumn id="actCol" dataField="Actual"/>
        <mx:AdvancedDataGridColumn dataField="Estimate"/>
    </mx:columns>

    <mx:rendererProviders>
        <mx:AdvancedDataGridRendererProvider 
            column="{actCol}"
            depth="3" 
            columnSpan="2" 
            renderer="myComponents.SummaryRenderer"/>
    </mx:rendererProviders>
</mx:AdvancedDataGrid>


HTH;

Amy

Reply via email to