asp.net GridViewasp.net 固定表头头 所以的列 和数据都是从数据库获取的 所以没有固定列

上一篇说过,还可以扩展gridview的分页功能以及实现导出结果为EXCEL/PDF的功能。实现好后应该封装起来,以方便后续的项目简单使用。至于要如何实现,我想不必过多的说了。下面是显示结果和主要的代码。如果有不明白的地方,可以留言。下面是把相应的功能封装到单独的工程(ZZControls)里面。这样就可以生成DLL后就可以直接引用了。下面一张是显示效果图。红色线为冻结线(可参考上一篇随笔)。&&而这一切,在前台设起来是相当的简单的。只需一个属性,默认为false,也即不显示。而在后台的代码也是相当的简单。也就简单的几句。怎么样,是否相当的方便? 下面是主要的实现代码。有兴趣的可以参考一下。(如果仔细研究代码,还有其它的属性也是方便设置的)&grdNavigate.zip
扩展gridview轻松实现冻结行和列_EXT之家EXT之家为你提供扩展gridview轻松实现冻结行和列和杂七杂八的内容.... 这就需要冻结表头和关键列.由于用到的地方比较多,我们可以护展一个gridview,使其简单设置就...扩展gridview轻松实现冻结行和列(增强型) - 朱洪亮 - 博客园扩展gridview轻松实现冻结行和列(增强型) 上一篇说过,还可以扩展gridview的分页功能以及实现导出结果为EXCEL/PDF的功能。实现好后应该封装起来,以方便后续的项目简单...转gridview的扩展,实现固定列和列头固定。 - 一辉℡哈米 - 博客园 /*测试版的实现 开始*/ 介绍 平时使用GridView的时候会有固定表头、指定行或指定列的需求,就像Excel冻结行、列那样。其实我们可以用CSS来搞定。扩展一下GridView...GridView如何冻结某一列_百度知道1个回答 - 提问时间: 日这个要自己再扩展一下控件 自带的控件是没有这个功能的GridView冻结列的实现 - 爱比你武 - 博客园我JS基础一般,看他们的代码很吃力,于是就自己设想做一个具有冻结列效果的GridView。上搜了下,实现思路大体一样:1. 将GridView装在一个带有滚动条的容器中...css实例:实现gridview仿excel冻结列2css实例:实现gridview仿excel冻结列2
| 阅: 转: | 分享 css实例:实现gridview仿excel冻结列看代码之前,先说一说思路,关键点有三:1. 表格外要...GridView冻结表头和冻结列 - 下载频道 - CSDN冻结GridView的表头和列(包含实例)。只需引用几个js和样式文件(含多种皮肤),几行代码就搞定。简单实用。冻结GridView的表头和列(包含实例)。只需引用几个js和样式...关于gridview如何冻结行与列.如Excel - 调试易关于gridview如何冻结行与列.如Excel 关于gridview如何冻结行与列.如Excel解决方案 >>GridView冻结前两列 - 心弦淡的日志 - 易博客GridView冻结前两列 可以固定gridview的最前面的两列,后面用滚动来控制 下面的代码是CSS的样式,你调用一下 .fixColleft1 { z-index:120; left: ...扩展GridView(一)——鼠标经过行时改变行的样式_设计家园 扩展GridView(一)——鼠标经过行时改变行的样式 介绍我们一般是通过在RowDataBound事件里编码的方式实现GridView的鼠标经过行时改变行的样式的功能。...冻结GridView表头和指定列 - 没事游泳的鱼 - 博客频道 - CSDN 3. 将GridView包在div区段中: &asp:gridview& &/asp:gridview& 上一篇可以... 冻结GridView表头和指定列(1356) RequiredFieldValidator验证控件(1254) 经...扩展GridView控件(1) - 鼠标经过行时改变行的样式 - webabcd - ... /*正式版的实现 开始*/ 介绍 扩展GridView控件: 鼠标经过行的时候改变该行的样式,鼠标离开行的时候恢复该行的样式 使用方法(设置属性): MouseOverCssClass - ...跪求asp 中 gridview 如何实现冻结最后四列,前面数..._百度知道1个回答 - 提问时间: 日1、可以用两个table实现,可以用两个gridview,修改一下样式,使其看起来像是一个 2、可以修改gridview的数据源,使用添加行的方法或是修改查询语句...好用的GridView扩展,简单固定行和列 - 下载频道 - CSDN好用的GridView扩展,简单固定行和列 Georgechiu上传 引用dll即可,在属性中简单控制固定gridview的行和列资源积分:4分 下载次数:61 资源类型:其他 资源...gridview怎么冻结列_imooo软件程序bug解决方案我现在用GRIDVIEW显示数据时,由于列太多,导致拖到最右边时看不清数据对应的是那条记录,现在想用冻结列的方式固定前几列,在上查了很多例子,用CSS方式控制,可...GridView固定表头和列 实例(GridView冻结表头和列) - 下载频道 - ...这个与asp中GridView相关的一个实例,实现GridView冻结表头和列,挺好用的。资源积分:0分 下载次数:294次 资源类型: 代码类 资源大小:8KB 资源得分: (43...GridView固定指定行、指定列 - 漫步的日志 - 易博客 /*测试版的实现 开始*/ 介绍平时使用GridView的时候会有固定表头、指定行或指定列的需求,就像Excel冻结行、列那样。其实我们可以用CSS来搞定。扩展一下GridView,...css实例:实现gridview仿excel冻结列css实例:实现gridview仿excel冻结列
| 阅: 转: | 分享 css实例:实现gridview仿excel冻结列看代码之前,先说一说思路,关键点有三:1. 表格外要套...自定义GridView实现获取指定行或指定列 - ItStrike平时使用GridView的时候会有固定表头、指定行或指定列的需求,就像Excel冻结行、列那样。其实我们可以用CSS来搞定。扩展一下GridView,通过设置几个属性来达到这样的...扩展GridView控件(5) - 固定指定行、指定列 - 笑话吧 - 博客园/*测试版的实现 开始*/介绍平时使用GridView的时候会有固定表头、指定行或指定列的需求,就像Excel冻结行、列那样。其实我们可以用CSS来搞定。扩展一下GridView,...Gridview删除行,和编辑一列,如何实现?的相关推荐_ITPUB论坛Gridview删除行,和编辑一列,如何实现? 刚从php转到 比较简单的问题 1个表, 一列自己增长的id ,一列name 想绑定到一个gridview (只能用dataset绑定,不能...如何扩展ASP GridView控件(2) - 51CTO扩展GridView控件(9) - 给数据行增加右键菜单&上& - 技术分享 - ...扩展GridView控件(9) - 给数据行增加右键菜单&上.../*正式版的实现 开始*/ 使用方法(设置ContextMenus... 轻松把土豆的视频下载保存到手机上 Photoshop通道...GridView的标题栏、列冻结成效(跨浏览器版)_IT知识问答_希赛GridView的标题栏、列冻结效果(跨浏览器版) 不甘心事情只做一半,又挖了一下,惊喜地发现另一个版本: Super Tables,可以支援Firefox 2+, Inte Explorer 5.5...54基于GridView控件仿EXCEL格式显示数据的页制作摘要: 本文通过一个实用的页实例,深入探讨ASP的GridView控件模仿EXCEL格式显示数据的页制作思路与实现过程,介绍了GridView控件在冻结窗格、合并单元格、自动...asp 扩展GridView 增加单选按钮列的代码_实用技巧_脚本之家asp 扩展GridView 增加单选按钮列的代码复制代码 代码如下: /// /// 单选按钮列 /// /// &remarks& /// 如果没有设置GroupName,则使用GridView的...gridview - Freeze asp grid view column - Stack Overflow[] How can i freeze initial 2 -3 leftmost column in asp grid view? so that while horizontal scrolling initial 2 - 3 columns that got freezes will...基于GridView控件仿Excel格式显示数据的页制作--《电脑编程技巧...【摘要】:通过一个实用的页实例,深入探讨了ASP的GridView控件模仿Excel格式显示数据的页制作思路与实现过程,介绍了GridView控件在冻结窗格、合并单元格、自动...关于gridview怎么冻结行与列.如Excel - ASP关于gridview如何冻结行与列.如Excel关于gridview如何冻结行与列.如Excel,//固定列..Css .fixCol { LEFT: expression(this.offsetParent.scrollLeft); P冻结窗格的DataGrid_格和数据控件_桌面_或代码{BR}'''冻结GridView的第N列'''作者:L.Skynyrd'''---{BR}公共共享小组冻结(GridView中的ByRefGV作为作为BYVAL的GridViewRow,n为整数,为ByRefRW)...XtraGrid Suite中文资源,XtraGrid Suite免费下载,XtraGrid Suite...XtraGrid控件各功能实现说明-非常超级学习//设置冻结列(左冻结) gridView1.Columns[0].Fixed= DevExpress.XtraGrid.Columns.FixedStyle.L //得到单元格数据(0 行 0 列) string ss=gridView1...asp2008 gridview冻结列-CSDN论坛-CSDN-中国最大的IT技术...7条回复&-&发帖时间:&日GridView 固定表头和固定列 - 下载频道 - CSDN.NET
&&&&GridView 固定表头和固定列
&GridView 固定表头和固定列
GridView 固定表头和固定列 采用样式加js,简单好用
若举报审核通过,可奖励20下载分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
您可能还需要
Q.为什么我点的下载下不了,但积分却被扣了
A. 由于下载人数众多,下载服务器做了并发的限制。若发现下载不了,请稍后再试,多次下载是不会重复扣分的。
Q.我的积分不多了,如何获取积分?
A. 传优质资源可以获取积分,详细见。选择完成有奖的任务,可以获取积分。选择购买VIP会员服务,无需积分下载资源。评价资源返积分:第一次绑定手机,将获50下载积分及100论坛可用分。论坛可用分兑换下载积分。
下载资源意味着您已经同意遵守以下协议
资源的所有权益归上传用户所有
未经权益所有人同意,不得将资源中的内容挪作商业或盈利用途
CSDN下载频道仅提供交流平台,并不能对任何下载资源负责
下载资源中如有侵权或不适当内容,
本站不保证本站提供的资源的准确性,安全性和完整性,同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
开发技术下载排行
你下载资源过于频繁,请输入验证码
如何快速获得积分?
你已经下载过该资源,再次下载不需要扣除积分
GridView 固定表头和固定列
所需积分:2
剩余积分:
VIP会员,免积分下载
会员到期时间:日
剩余下载次数:1000This article will demonstrate how to create Fixed Headers in an ASP.NET GridView using jQuery. This solution is cross-browser and has been tested in IE 7 and Firefox 3.The jQuery code used in this article is not my piece of work. But it is worth my time to write an article on it to introduce this script to you. I have seen plenty of scripts/solutions that proposed a workaround for a Fixed Header in a GridView, similar to the fixed header in Microsoft Excel. However either those solutions were over-complex or worked only on IE or Mozilla. This script works cross-browser (tested it in IE7 and Firefox3) and is absolutely easy to understand and use it in your solutions. If you have faced a similar requirement of creating a fixed header in an ASP.NET GridView, then& here’s a read for you. For those who implemented other approaches but are still looking out for a solution, this script should be helpful. This script will also work against a plain HTML table with a &thead& and &tbody&I assume you are familiar with jQuery. If not, please read my article over here before continuing any further: For those familiar with jQuery, follow these simple steps to create a GridView with fixed header:Set up a GridView as you usually do, binding it to a datasource. Here’s some sample markup where I am using the Northwind database and a GridView bound to the SQLDataSource to pull data from the database.& & &div&
& & & & & &asp:GridView ID=&ScrollT& runat=&server& AutoGenerateColumns=&False& DataKeyNames=&ProductID&
& & & & & & DataSourceID=&SqlDataSource1& AllowPaging=&False& AllowSorting=&True& OnPreRender=&GridView1_PreRender&&
& & & & & & &Columns&& & & & & & & & & & & & &
& & & & & & & & &asp:BoundField DataField=&ProductID& HeaderText=&ProductID& ReadOnly=&True& SortExpression=&ProductID& /&
& & & & & & & & &asp:BoundField DataField=&ProductName& HeaderText=&ProductName& SortExpression=&ProductName& /&
& & & & & & & & &asp:BoundField DataField=&QuantityPerUnit& HeaderText=&QuantityPerUnit& SortExpression=&QuantityPerUnit& /&
& & & & & & & & &asp:BoundField DataField=&UnitPrice& HeaderText=&UnitPrice& SortExpression=&UnitPrice& /&
& & & & & & &/Columns&
& & & & &/asp:GridView&
& & & & & & &asp:SqlDataSource ID=&SqlDataSource1& runat=&server& ConnectionString=&&%$ ConnectionStrings:NorthwindConnectionString %&&
& & & & & & & & SelectCommand=&SELECT [ProductID], [ProductName], [QuantityPerUnit], [UnitPrice], [Discontinued] FROM [Products]&&
& & & & & & &/asp:SqlDataSource&
& & &/div&
复制代码The &connectionStrings& element in the web.config will look similar to the following:& & & &connectionStrings&
& & & & & & &add name=&NorthwindConnectionString& connectionString=&Data Source =(local);Integrated Security = SSPI; Initial Catalog=N&/&
& & & &/connectionStrings&
复制代码Assuming you have downloaded the jQuery library from here, now download these 2 jQuery files provided by webtoolkit:
& Add references to all these files in the &head& element of the page as shown below:&head runat=&server&&
& & &title&Fixed Header&/title&
& & &script src=&Scripts/jquery-1.2.6.js& type=&text/javascript&&&/script&
& & &script src=&Scripts/webtoolkit.jscrollable.js& type=&text/javascript&&&/script&
& & &script src=&Scripts/webtoolkit.scrollabletable.js& type=&text/javascript&&&/script&
复制代码Now add some style to light up the GridView&style type=&text/css&&
& & & & & & & & & table {& & & & & & & & & & &
& & & & & & & & & & & & font: normal 11px &Trebuchet MS&, Verdana, A& & & & & & & & & & & & & & & & & & & & & & &
& & & & & & & & & & & background:#& & & & & & & & & & & & & & & & &
& & & & & & & & & & & border:solid 1px #C2EAD6;
& & & & & & & & & }& & & & & & & &
& & & & & & & & &
& & & & & & & & & td{& & & & & & & & &
& & & & & & & & & padding: 3px 3px 3px 6
& & & & & & & & & color: #5D829B;
& & & & & & & & & }
& & & & & & & & & th {
& & & & & & & & & & & & font-weight:
& & & & & & & & & & & & font-size:
& & & & & & & & & color: #5D728A;& & & & & & & & & & & & & & & & & & & & & &
& & & & & & & & & padding: 0px 3px 3px 6
& & & & & & & & & background: #CAE8EA& & & & & & & & & & &
& & & & & & & & & }
& & & & & & &/style&
复制代码And now some jQuery code to pass the table height and width to the jscrollable.js library. The jscrollable.js internally calls the scrollabletable.js that does all the magic of creating the fixed header using javascript.& & &script type=&text/javascript&&
& & & & $(document).ready(function() {
& & & & & & jQuery('table').Scrollable(400, 800);
& & & & });
& & &/script&
复制代码Note: This script works against tables that have the &thead& and &tbody& tags. GridView does not generate the &thead& tags by default. In order to do so, add the following lines of code in the PreRender event of the GridView (so that it executes once)C#& & protected void GridView1_PreRender(object sender, EventArgs e)
& & & & ScrollT.UseAccessibleHeader =
& & & & ScrollT.HeaderRow.TableSection = TableRowSection.TableH
复制代码VB.NET& & & Protected Sub GridView1_PreRender(ByVal sender As Object, ByVal e As EventArgs)
& & & & & & ScrollT.UseAccessibleHeader = True
& & & & & & ScrollT.HeaderRow.TableSection = TableRowSection.TableHeader
& & & End Sub
复制代码And that’s all you need to do. Run the application and check out the FixedHeader that works on both IE and Mozilla. 600) this.width = 600;attachimg(this, 'load');" onmouseover="attachimginfo(this, 'attach_14440', 1);attachimg(this, 'mouseover')" onclick="zoom(this);" onmouseout="attachimginfo(this, 'attach_14440', 0, event)" style="CURSOR:"
/>() 14:15:45I hope you liked the article and I thank you for viewing it.& (Posted by:Suprotim Agarwal& )The source code of this application can be downloaded from here:
附件: 亲,您没有权限下载或查看附件喔:-)
试试 或 吧!
正需要这方面的资料呢
非常需要这个
非常需要这个
thx alot if it help
正需要这方面的资料呢 谢谢!
正需要这个呢,谢谢楼主了~~
谢谢提供~~~~~
Powered by
CopyRight &1587人阅读
这里用css实现Gridview固定表头和列需要使用div重叠,以及两个div滚动条同时滚动的方法。
一、div重叠方法:
外层用relative相对定位,里面用absolute绝对定位,就能很好的实现你的要求了。z-index是用来控制div的显示优先级别。
如下的一个html实例:
&!DOCTYPE HTML PUBLIC &-//W3C//DTDHTML 4.01//EN& &http://www.w3.org/TR/html4/strict.dtd&&
&metahttp-equiv=&Content-Type& content=&text/charset=iso-8859-1&&
&title&UntitledDocument&/title&
&style type=&text/css&&
div#div1{position:}&
div#a1{background-color:position:z-index:1}
div#a2{background-color:position:z-index:2}
div#a3{background-color:Gposition:z-index:3}
&div id=&div1&&
&&&&div id=&a1& &
&&&div id=&a2& &
&&&div id=&a3& &
效果如下图:表明a1、a2、a3三个div的内容重叠了
可以依次将a3、a2删除查看效果就能更明白了。
或者将a2内容加个换行,a3内容加两个换行,代码如下:
&!DOCTYPE HTML PUBLIC &-//W3C//DTDHTML 4.01//EN& &http://www.w3.org/TR/html4/strict.dtd&&
&metahttp-equiv=&Content-Type& content=&text/charset=iso-8859-1&&
&title&Untitled Document&/title&
&style type=&text/css&&
div#div1{position:}&
div#a1{background-color:position:z-index:1}
div#a2{background-color:position:z-index:2}
div#a3{background-color:Gposition:z-index:3}
&div id=&div1&&
&&&&&&&& &divid=&a1&&
&&&&&&&& 1111111
&&&&&&&& &/div&
&&&&&&&& &divid=&a2&&
&&&&&&&& &br/&
&&&&&&&& &/div&
&&&&&&&& &divid=&a3&&
&&&&&&&& &br/&
&&&&&&&& &br/&
&&&&&&&& 33333
&&&&&&&& &/div&
&/div&&/body&
效果如下图:表明a1、a2、a3三个div的内容重叠了,看到这里应该明白了。
二、锁定表头和列的方法就是这个思路:
1、第一步:
重叠三个div:a1、a2、a3中分别放置三个GridView,数据源一样,样式也一样。a1设置好宽度=620,高度=500,其中a2的高度与GridView的表头高度相等,宽度=600(比a1少的20是滚动条的宽度),a3的宽度与GridView要固定的列的宽度相等,高度=500(比a1少的20是滚动条的宽度),a2、a3隐藏滚动条,此时允许,可以看到一个完整的GridView数据显示,并带有垂直和水平。但是移动滚动条,表头和要固定的列没有移动。
2、第二步:
设置a1水平滚动条移动,a2的水平滚动条也同时移动;设置a1垂直滚动条移动,a3的垂直滚动条也同时移动。
代码如下:
&divid=&a1& onscroll=&document.getElementById('a2').scrollLeft = this.scrollLdocument.getElementById('a3').scrollTop= this.scrollT&&
其中:scrollLeft 代表水平滚动条;scrollTop代表垂直滚动条
前端代码:
&%@PageLanguage=&C#&AutoEventWireup=&true&CodeFile=&FixGridViewHeadColumn.aspx.cs&Inherits=&FixGridViewHeadColumn&%&
&!DOCTYPEhtml
PUBLIC &-//W3C//DTDXHTML 1.0 Transitional//EN&
&http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&&
&htmlxmlns=&http://www.w3.org/1999/xhtml&&
&headrunat=&server&&
&&& &title&固定gridview表头和列&/title&
&styletype=&text/css&&
&&& margin:50px;&
#div1{position:relative;}&
#a1{width:620px;&height:520px;
&&& background-color:Green;&overflow:auto;
&&& position:absolute;&&z-index:1
#a2{width:600px;&height:24px;
&&& background-color:Blue;&&overflow:hidden;
&&& position:absolute;&&z-index:3
#a3{width:122px;&height:500px;
background-color:Red ;
&&& overflow:hidden;position:absolute;z-index:2
&&& &formid=&form1&
runat=&server&&
&divid=&div1&&
&&& &divid=&a1&
onscroll=&document.getElementById('a2').scrollLeft =this.scrollLdocument.getElementById('a3').scrollTop=this.scrollT&&
&&&&&&& &asp:GridViewID=&GridView1&&
runat=&server&
Width=&1000px&Height=&500px&&
&&&&&&& &/asp:GridView&
&&& &divid=&a2&
&&&&&& &asp:GridViewID=&GridView2&&
runat=&server&
Width=&1000px&Height=&500px&&
&&&&&& &/asp:GridView&
&& &divid=&a3&
&&&&&& &asp:GridViewID=&GridView3&&
runat=&server&
Width=&1000px&Height=&500px&&
&&&&&& &/asp:GridView&
&&& &/form&
后台代码:
using System.Collections.G
using System.L
using System.W
using System.Web.UI;
using System.Web.UI.WebC
using System.D
partialclass
FixGridViewHeadColumn: System.Web.UI.Page
&&& protectedvoid Page_Load(objectsender,EventArgs e)
&&&&&&& System.Data.DataTable dt =newSystem.Data.DataTable();
&&&&&&& System.Data.DataRow
&&&&&&& //添加列名
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&学生班级&,typeof(System.String)));
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&学生姓名&,typeof(System.String)));
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&语文&,typeof(System.Decimal)));
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&数学&,typeof(System.Decimal)));
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&英语&,typeof(System.Decimal)));
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&计算机&,typeof(System.Decimal)));
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&物理&,typeof(System.Decimal)));
&&& &&&&dt.Columns.Add(newSystem.Data.DataColumn(&化学&,typeof(System.Decimal)));
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&生物&,typeof(System.Decimal)));
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&地理&,typeof(System.Decimal)));
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&历史&,typeof(System.Decimal)));
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&美术&,typeof(System.Decimal)));
&&&&&&& dt.Columns.Add(new System.Data.DataColumn(&政治&,typeof(System.Decimal)));
&&&&&&& //用循环添加行数据
&&&&&&& for(int i = 0; i & 50; i++)
&&&&&&&&&&& System.Random rd =newSystem.Random(Environment.TickCount* i); ;
&&&&&&&&&&& dr = dt.NewRow();
&&&&&&&&&&& dr[0] =
&班级& + i.ToString();
&&&&&&&&&&& dr[1] =
&虚拟人& + i.ToString();
&&&&&&&&&&& dr[2] = System.Math.Round(rd.NextDouble() * 100, 2);
&&&&&&&&&&& dr[3] = System.Math.Round(rd.NextDouble() * 100, 2);
&&&&&&&&&&& dr[4] = System.Math.Round(rd.NextDouble() * 100, 2);
&&&&&&&&&&& dr[5] = System.Math.Round(rd.NextDouble() * 100, 2);
&&&&&&&&&&& dr[6] = System.Math.Round(rd.NextDouble() * 100, 2);
&&&&&&&&&&& dr[7] = System.Math.Round(rd.NextDouble() * 100, 2);
&&&&&&&&&&& dr[8] = System.Math.Round(rd.NextDouble() * 100, 2);
&&&&&&&&&&& dr[9] = System.Math.Round(rd.NextDouble() * 100, 2);
&&&&&&&&&&& dr[10] = System.Math.Round(rd.NextDouble() * 100, 2);
&&&&&&&&&&& dr[11] = System.Math.Round(rd.NextDouble() * 100, 2);
&&&&&&&&&&& dr[12] = System.Math.Round(rd.NextDouble() * 100, 2);
&&&&&&&&&&& dt.Rows.Add(dr);
&&&&&&& GridView1.DataSource =
&&&&&&& GridView1.DataBind();
&&&&&&& GridView2.DataSource =
&&&&&&& GridView2.DataBind();
&&&&&&& GridView3.DataSource =
&&&&&&& GridView3.DataBind();
最后效果图:
& & & & & &本方法用了3个gridview,虽然实现了功能,但方法很笨,还是应该找到找到简便点的方法。
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:151317次
积分:1787
积分:1787
排名:第8844名
原创:32篇
转载:23篇
评论:27条
(1)(1)(1)(2)(30)(10)(5)(5)}

我要回帖

更多关于 asp.net 固定表头 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信