views:

804

answers:

3

How to align text within a FooterTemplate cell in a GridView

I tried the following but the text is still centered (there is a parent center tag):

<FooterTemplate>
    <span style="size:100%; padding:0; text-align: right">Total:&nbsp;</span>
</FooterTemplate>
A: 

Maybe

<FooterTemplate>
    <div style="text-align: right;">
        <span>Total: </span>
    </div>
</FooterTemplate>

works as you want.

anddoutoi
+1  A: 

In the parent column of the template try setting FooterStyle-HorizontalAlign="Right"

Matthew Jones
+1  A: 

Use display:block which replaces size:100% (which doesn't exist, AFAIK)

<FooterTemplate>
  <span style="display:block; padding:0; text-align: right">Total: </span>
</FooterTemplate>
Alsciende