problem with grid header's property "HorizontalAlign"

2 posts, 0 answers
  1. kenghot
    kenghot avatar
    31 posts
    Member since:
    Feb 2007

    Posted 27 Oct 2009 Link to this post

    I would like to set alignment of column header for tables.
     I've set it to align right. However, it still align left.
     What should I do?
                                                           
    ---------------------------------------------------------------
    <radG:GridBoundColumn DataField="Qty" DataFormatString="{0:##,#0.#0}" DataType="System.Decimal"
                                                                HeaderText="Qty" UniqueName="Qty">
                                                                <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                                    Font-Underline="False" HorizontalAlign="Right" Wrap="True" />
                                                                <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                                    Font-Underline="False" HorizontalAlign="Right" Wrap="True" />
                                                                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                                    Font-Underline="False" HorizontalAlign="Right" Wrap="True" />
                                                            </radG:GridBoundColumn>
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Oct 2009 Link to this post

    Hi Prachya,

    You can try using css settings to align the header text to the right as shown in the example below:
    aspx:
    <HeaderStyle CssClass="header" Wrap="True" /> 

    css:
    .header 
        { 
            text-align:rightright
            font-size:1.13em; 
            color:#fff
            font-weight:normal
            
        } 

    Hope this helps..
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top