Okay, this should be a no-brainer....
I want my datagrid rows packed together very tightly which means getting
rid of the paddingTop or verticalGap that is the default of the datagrid
cell. I can create my own item renderer
<mx:itemRenderer>
<mx:Component>
<mx:HBox verticalGap="0" paddingBottom="0"
paddingTop="-3">
<mx:Label text="{data.theValue}"/>
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
That's all fine and good (though more than I want to do for 30 columns
really.
First, can I set something that takes the padding off of the cells?
If not, can I abstract the itemRenderer above into a new component that
is virtual? I'm having troubles with the "theValue" you see above. If I
just put out "data" in an abstracted component it does not peer into the
object for the dataField="theValue" as defined in the line as:
<mx:DataGridColumn dataField="theValue"
itemRenderer="renderers.DataGridCellTiny"/>
All that comes out of that is [Object], so short of creating an
abstracted component per column I don't see how to pass the itemRenderer
any references to tell it what field to get out of the object.
Wow, that was much simpler in my head.