Question: i have some jquery thats expanding/collapsing on click. i would like the first item to be expanded by default but im having trouble with the jquery. i've tried a few different angles to no avail. any help would be much appreciated!

<http://jsfiddle.net/trrJp/1/>

Answer: 
The original poster didn't select an answer I'm going to combine the previous two into one ***super*** answr! :P

You can enable word wrapping on all columns on the Spark DataGrid with variableRowHeight:

```
<s:DataGrid variableRowHeight="true">
</s:DataGrid>

```

Or you can enable word wrapping on an individual column by using the word wrap property on the default GridColumn item renderer:

```
<s:GridColumn dataField="fields.description" headerText="Description" >
    <s:itemRenderer>
        <fx:Component>
            <s:DefaultGridItemRenderer wordWrap="true"/>
        </fx:Component>
    </s:itemRenderer>
</s:GridColumn>

```

Furthermore, in the Grid Column example I'd recommend setting a width if you want to prevent horizontal scroll bars:

```
<s:GridColumn width="{dataGrid.width-column1.width-column3.width}" dataField="fields.description" headerText="Description" >
    <s:itemRenderer>
        <fx:Component>
            <s:DefaultGridItemRenderer wordWrap="true"/>
        </fx:Component>
    </s:itemRenderer>
</s:GridColumn>

```

I'm finding I have to set both variable row height to true and set the column width to get the behavior I'm looking for.
Until *flex4.6*, there is no **s**:DataGridItemRenderer, but there is **mx**:DataGridItemRenderer. So, the code would be:

```
<s:GridColumn headerText="foo" labelFunction="fooLabelFunction">
    <s:itemRenderer>
        <fx:Component>
            <mx:DataGridItemRenderer wordWrap="true" />
        </fx:Component>
    </s:itemRenderer>
</s:GridColumn>

```