How to align text in a FooterTemplate cell in a GridView

How to align text in 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>
+3
source share
4 answers

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

+9
source

Can

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

works the way you want.

+1
source

: , : 100% ( , AFAIK)

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

Grid-view , CSS, , , , , , -

    tr:last-of-type td {
        align-content: center;
        vertical-align: middle;
        text-align: center;
    }

, .

0

Source: https://habr.com/ru/post/1710575/


All Articles