2010年9月28日

GridView帮定数据显示数据的技巧

摘要: <asp:GridView ID="grdList" runat="server" AutoGenerateColumns="False" Width="100%"DataKeyNames="SalesOrderId" OnRowDataBound="grdList_RowDataBound" AllowPaging="True" PageSize="50" OnPageIndexChang... 阅读全文

posted @ 2010-09-28 11:32 HelloHongfu 阅读(295) 评论(0) 推荐(0) 编辑

c# 保留2位小数 整数格式化的操作!

摘要: 引自:http://yjsghqqk.blog.163.com/blog/static/479823412010723711694/我来总结下: 1.只要求保留N位不四舍5入 float f = 0.55555f; int i =(int)(f * 100); f = (float)(i*1.0)/100; 2.保留N位,四舍五入 . decimal d= decimal.... 阅读全文

posted @ 2010-09-28 09:09 HelloHongfu 阅读(2067) 评论(0) 推荐(0) 编辑

导航