Hi,
You can use HBox component or anoother layout compnent to say, inside 
the itemRenderer like

 <mx:DataGridColumn width="65" headerText="Member" dataField="member"
 textAlign="center" >
        <mx:itemRenderer>
             <mx:Component>
<HBox>
             <mx:CheckBox  labelPlacement="left"/>
</HBox>
             </mx:Component>
        </mx:itemRenderer>
 </mx:DataGridColumn>



thanks.


--- In [email protected], "iko_knyphausen" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi,
> 
> I am trying to use checkboxes in my datagrid, and everything works 
fine,
> except I cannot vertically align the "bugger". I played with
> 
> textAlign=""
> horizontalCenter =""
> paddingLeft =""
> left=""
> etc.
> 
> all the usual style candidates. The only thing that will make a
> difference, is the labelPlacement attrribute. The values "top" and
> "bottom" will center the checkbox nicely, unfortunately they will 
also
> add space for the label (either above or below) even if the label
> attribute is empty.
> 
> See code below. Help is greatly appreciated... Thx
> 
> <mx:DataGridColumn width="65" headerText="Member" dataField="member"
> textAlign="center" >
>        <mx:itemRenderer>
>             <mx:Component>
>             <mx:CheckBox  labelPlacement="left"/>
>             </mx:Component>
>        </mx:itemRenderer>
> </mx:DataGridColumn>
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to