站内搜索
广告
(论坛答疑点滴)如果用DataGrid实现类似DataList多列的效果
作者:    来源:    点击:    日期:2007-7-6 0:55:32   
 上一次说了怎么利用DataGrid纵向显示
http://www.cnblogs.com/lovecherry/archive/2005/04/23/143819.html
其实这么做的好处在于DataGrid能够方便的进行分页,这个排列次序接近于DataList的RepeatDirection="Vertical"效果
今天再来对上次的程序进行一下修改,实现RepeatDirection="Horizontal"的效果,同时启用DataGrid的分页。
这样可以弥补DataList不能自动分页的不足,但是效率上来说其实是很差的。

javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)"> 
javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)"><asp:DataGrid id="DataGrid1" runat="server" AllowPaging="True" PageSize="4"></asp:DataGrid>

javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)">private DataTable MakeData(DataTable dt,int iSize,int iColumnID) 
javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)">javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)">        

首页 上一页 [1] [2] [3]  下一页 尾页 
(论坛答疑点滴)如果用DataGrid实现类似DataList多列的效果 评论