views:

32

answers:

1

Hi,

i cant find a way to horizontal alignment of the data grid rows, although it has a vertical alignment parameter.

+1  A: 

Do you mean something like DataGridColumn's textAlign Style?

<mx:DataGrid>
  <mx:columns>
    <mx:DataGridColumn headerText="Column 1" textAlign="left"/>
    <mx:DataGridColumn headerText="Column 2" textAlign="center"/>
    <mx:DataGridColumn headerText="Column 3" textAlign="right"/>
  </mx:columns>
</mx:DataGrid>
splash
i have an item renderer in each dataGridColumn and rows have CheckBoxes... the check boxes are always at left... do i have to contain them with an hbox and then use horizontal alighn???
seismael
Yes. That's what I would do too.
splash