I need to align the values inside the Grid View to to Center and Right. Because I need to align Currency.
And other Columns need to be aligned Center and Left.
Can you Help me doing This??
I’m currently Doing This.
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Amount">
<ItemTemplate>Rs.<%# Eval("Payable_Bill_Amount","{0:n}")%></ItemTemplate>
</asp:TemplateField>
This Aligns the Content to totally Right.
I need to align the Content to Right But Also to Center Like Calculations We Do
Ex:
Required Current
| 10.00 | | 10.00|
| 110.00 | | 110.00|
| 1210.00 | | 1210.00|
----------
How about aligning them to the right using
and then using CSS padding to add some space around the edge of the value in the cell?