T
tshad
I have a datagrid that I cannot get to right justify a money amount (which
is just a label). No matter what I do - it still right justifies it.
<asp:TemplateColumn Visible="true" itemStyle-Width="100px"
HeaderText="Amount Per Job" HeaderStyle-Font-Bold="true"
ItemStyle-VerticalAlign="middle" ItemStyle-HorizontalAlign="right" >
<itemtemplate>
<asp:Label ID="JobBoardPriceDisplay" style="text-align:right"
runat="server"/>
</itemtemplate>
</asp:TemplateColumn>
I tried 2 different ways:
ItemStyle-HorizontalAlign="right"
style="text-align:right"
This gives me the following results when I view source:
<td align="Right" valign="Middle" style="width:100px;">
<span id="DataGrid1__ctl3_JobBoardPriceDisplay"
style="text-align:right"><strong>$25.00</strong></span>
</td>
What else can I do to make this work?
Thanks,
Tom
is just a label). No matter what I do - it still right justifies it.
<asp:TemplateColumn Visible="true" itemStyle-Width="100px"
HeaderText="Amount Per Job" HeaderStyle-Font-Bold="true"
ItemStyle-VerticalAlign="middle" ItemStyle-HorizontalAlign="right" >
<itemtemplate>
<asp:Label ID="JobBoardPriceDisplay" style="text-align:right"
runat="server"/>
</itemtemplate>
</asp:TemplateColumn>
I tried 2 different ways:
ItemStyle-HorizontalAlign="right"
style="text-align:right"
This gives me the following results when I view source:
<td align="Right" valign="Middle" style="width:100px;">
<span id="DataGrid1__ctl3_JobBoardPriceDisplay"
style="text-align:right"><strong>$25.00</strong></span>
</td>
What else can I do to make this work?
Thanks,
Tom