<script>
$(function() {
$('.jqFix2').each(function () {
$(this).html(($(this).text() * 1.0).toFixed(2));
});
</script>
DataGrid
<asp:DataGrid ID="dgCopay" runat="server
AllowSorting="True" ShowHeader="True" BackColor="White" CellPadding="3" AutoGenerateColumns="False">
<Columns>
HeaderText="Total" HeaderStyle-CssClass="HeaderStyle" HeaderStyle-ForeColor="White"
HeaderStyle-HorizontalAlign="center" ItemStyle-CssClass="ItemStyle" ItemStyle-HorizontalAlign="right">
<ItemTemplate>
<asp:Label ID="Label19" runat="server" style="Width:50px" CssClass="jqFix2">
<%# DataBinder.Eval(Container.DataItem,"total") %></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid >
No comments:
Post a Comment