当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: ASP.NET中利用DataGrid的自定义分页
 

 

    摘要: working with brushes in gdi+ drawing gdi+ objects the following code draws a line, an ellipse, a curve, and a polygon object. as you can see from the code, i抳e used pen object to fill these ob......
 ·自制作调色板(转)    »显示摘要«
    摘要: using system; using system.winforms; using system.drawing; public class createmypanel : form { color[] color = new color[]{ color.aliceblue, color.antiquewhite, color.aqua, color.aquamari......


ASP.NET中利用DataGrid的自定义分页功能
asp.net中利用datagrid的自定义分页功能与存储过程结合实现高效分页 asp.net中的datagrid有内置分页功能, 但是它的默认的分页方式效率是很低的,特别是在数据量很大的时候,用它内置的分页功能几乎是不可能的事,因为它会把所有的数据从数据库读出来再进行分页, 这种只选取了一小部分而丢掉大部分的方法是不可去取的. 在最进的一个项目中因为一个管理页面要管理的数据量非常大,所以必须分页显示,并且不能用datagrid的内置分页功能,于是自己实现分页. 下面介绍一下我在项目中用到的分页方法. 当然显示控件还是用datagrid的, 因为数据绑定很方便^_^. 要保证不传输冗余的数据,那么必须在数据库中数据读取时实现分页, 数据库的分页操作可以放在存储过程中. 看了csdn的一篇blog中讲了一个百万级数据分页的存储过程的实现(http://blog.csdn.net/wellknow/posts/55167.aspx,他的这个方法可以根据不同情况进行适当的优化), 根据他的方法,这里实现一个简单的sql语句来实现这里分页需要的存储过程.
...   下一页
 ·winform使用水晶报表的例子    »显示摘要«
    摘要: ///form文件 namespace simpleapp { using system; using system.drawing; using system.collections; using system.componentmodel; using system.winforms; using system.data; public class simpleform : ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE