Click here to Skip to main content
15,891,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
plz help me!!!
I want to show amount by using comma separator in asp.net grid gridview.........

like this 12,345,678.87 and my grid view data binding is below........



<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="4" ForeColor="#333333" GridLines="None" DataKeyNames="TheatreClassTypeID"
ShowFooter="True" Width="100%" AllowPaging="True"
onrowcommand="GridView1_RowCommand"
onrowdatabound="GridView1_RowDataBound"
onpageindexchanging="GridView1_PageIndexChanging"
>
<rowstyle backcolor="#F7F6F3" forecolor="#333333">
<columns>
<asp:BoundField DataField="Amount" HeaderText="Amount" SortExpression="Amount" ReadOnly="true">
<HeaderStyle HorizontalAlign="Right" />
<itemstyle horizontalalign="Right">
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900