Jeet Verma
Total Post:110
Points:776I am trying to round the result of my code to 2 decimal places, but ROUND isn't working. Any help? Thanks!
<asp:SqlDataSource ID="SqlDataSource1"runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [Id], [attempts], [total], (round(attempts / total,(2))) AS [Percentage] FROM [Game]">
</asp:SqlDataSource>
Post:378
Points:2694Re: how to round decimal value in Gridview
Hi Jeet,