如何在每个页面的gridview中维护标题 [英] how to maintain header in gridview in every page
本文介绍了如何在每个页面的gridview中维护标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨盖兹,
我如何动态地维护/获取从第1页到gridview的每一页的行标题?
在此先感谢!!!!
hi guyz,
how can i maintain/get row header from page 1 to every page of the gridview dynamically??
thanks in advance!!!
推荐答案
请参见
http://www.victorchen.info/a-scrollable-gridview -with-a-fixed-header-in-c/ [ http://geekswithblogs.net/thanigai/archive/2009/05/05/gridview-fixed-header.aspx [ ^ ]
http://csharpdotnetfreak.blogspot.com/2009/07/scrollable-gridview- fixed-headers-asp.html [ ^ ]
See
http://www.victorchen.info/a-scrollable-gridview-with-a-fixed-header-in-c/[^]
http://geekswithblogs.net/thanigai/archive/2009/05/05/gridview-fixed-header.aspx[^]
http://csharpdotnetfreak.blogspot.com/2009/07/scrollable-gridview-fixed-headers-asp.html[^]
<asp:GridView ID="gvCustomres" runat="server"
DataSourceID="customresDataSource"
AutoGenerateColumns="False"
GridLines="None"
AllowPaging="true"
CssClass="mGrid"
PagerStyle-CssClass="pgr"
AlternatingRowStyle-CssClass="alt">
<Columns>
<asp:BoundField DataField="CompanyName" HeaderText="Company Name" />
<asp:BoundField DataField="ContactName" HeaderText="Contact Name" />
<asp:BoundField DataField="ContactTitle" HeaderText="Contact Title" />
<asp:BoundField DataField="Address" HeaderText="Address" />
<asp:BoundField DataField="City" HeaderText="City" />
<asp:BoundField DataField="Country" HeaderText="Country" />
</Columns>
</asp:GridView>
这篇关于如何在每个页面的gridview中维护标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文