This works with List components and it should work with the datagrid.
<mx:DataGrid verticalAlign="middle"/>

On 12/23/06, eren bali <[EMAIL PROTECTED]> wrote:

ok than set your itemrenderer to a custom hbox like this:

<HBox verticalAlign="middle" >
   <String id="text" />
   <Label text="{text}" />
</HBox>

i did not compile this, do nop copy/paste


On 12/19/06, arpan srivastava <[EMAIL PROTECTED]> wrote:
>
>   textAlign attribute will place the text in horizontally in center , I
> want to place it
> vertically in center of the row.
>
> it's like in a text box text always starts from top left corner,
> i want to start it from vertically middle of the text box
>
> ----- Original Message ----
> From: david_gal-reyniez <[EMAIL PROTECTED]>
> To: " [email protected]" <[email protected]>
> Sent: Monday, December 18, 2006 9:11:13 PM
> Subject: RE: [flexcoders] How to align text in middle in a row ?
>
>  Hi Arpan,
>
> There is an the attribute which is named "textAlign" for the Object
> "DataGridColumn" .
> Is that the information you need?
>
> David
>
>  ------------------------------
> *De :* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
> *De la part de* arpan srivastava
> *Envoyé :* lundi 18 décembre 2006 16:32
> *À :* [EMAIL PROTECTED] ups.com
> *Objet :* Re: [flexcoders] How to align text in middle in a row ?
>
>   Sorry,
>
> I want to place the text vertically aligned in the middle.
>
> ----- Original Message ----
> From: eren bali <[EMAIL PROTECTED] com>
> To: [EMAIL PROTECTED] ups.com
> Sent: Monday, December 18, 2006 7:17:55 PM
> Subject: Re: [flexcoders] How to align text in middle in a row ?
>
>  set that label 100% width, and textAlign="center"
>
> if this does not work use it inside a vbox
>
>
> On 12/18/06, arpan srivastava < [EMAIL PROTECTED] com<[EMAIL PROTECTED]>>
> wrote:
> >
> >    Hi,
> >     How can i center the text horizontally inside a row in a datagrid.
> > I have also created an itemrenderer which extends Label, but you can only
> > align the text vertically. I want it to be in center of the row.
> >
> > ____________ _________ _________ _________ _________ __
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail. yahoo.com
> >
> >
>
>
> --
> Eren BAL(c)
> Invento Studios
>
>
> ____________ _________ _________ _________ _________ __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail. yahoo.com
>
> ************ ********* ********* ********* ********* ********* *********
> ****
>
> ************ ********* ********* ********* ********* ********* *********
> ****
>
> Coface facilite les échanges entre les entreprises partout dans le
> monde. Pour cela, elle offre à toutes les entreprises des solutions pour
> gérer, financer et protéger leur Poste clients : information et notation
> mondiale d'entreprises, gestion et recouvrement de créances , affacturage et
> assurance-crédit. Coface est notée AA par Fitch Ratings, Aa3 par Moody's et
> AA- par Standard & Poor's.
>
>  Coface facilitates business-to- business trade throughout the world by
> offering companies solutions to help them manage, finance and protect their
> receivables : information and company ratings, receivables management,
> receivables finance and protection. Coface is rated AA by Fitch ratings, Aa3
> by Moody's and AA- by Standard & Poor's.
>
> ************ ********* ********* ********* ********* ********* *********
> ****
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>


--
Eren BALİ
Invento Studios

Reply via email to