3 Replies Latest reply on Nov 30, 2006 2:29 PM by jsevlie

    Center CheckBox as Item Renderer

    mrbahr
      Hi All,

      I am using a checkBox as an ItemRenderer in a DataGridColumn. It always comes out left justified in the column. Is there a way to center the checkbox. I am using code like the following:

      <mx:DataGridColumn headerText="Active?" dataField="active" width="60">
      <mx:itemRenderer>
      <mx:Component>
      <mx:CheckBox selected="{outerDocument.setCheck(data.active)}"/>
      </mx:Component>
      </mx:itemRenderer>
      </mx:DataGridColumn>

      The checkbox doesn't have any label and I don't want one. I just want the checkbox centered in the column instead of left justified. Anybody out there know how to do this.

      Thanks for your help.

      TOm