This is a migrated thread and some comments may be shown as answers.

problem with grid header's property "HorizontalAlign"

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kenghot
Top achievements
Rank 1
kenghot asked on 27 Oct 2009, 06:07 AM
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>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Oct 2009, 08:03 AM
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.
Tags
Grid
Asked by
kenghot
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or