DIV GRIDVIEW -STYLE PROPERTIES - 标题滚动 [英] DIV GRIDVIEW -STYLE PROPERTIES - headers scrolling

查看:93
本文介绍了DIV GRIDVIEW -STYLE PROPERTIES - 标题滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在样式属性中设置标题,使gridview标题为'fiexd'。



而不是滚动。





How do you set the headers within the style properties such that the gridview headers are 'fiexd'.

and not scroll along.


<td class="style32" colspan="8">
               <div style="height: 83px; overflow: auto; empty-cells: show;">
                   <asp:GridView ID="GridView1" runat="server" Font-Size="X-Small" PageSize="5"

                       BackColor="White" onselectedindexchanged="GridView1_SelectedIndexChanged" >
                       <Columns>
                           <asp:CommandField ShowSelectButton="True" />
                       </Columns>
                   </asp:GridView>
               </div>
           </td>

推荐答案

您是否可以访问Google?请参阅:在asp.net中使用固定标题的gridview [ ^ ]。使用您最喜欢的搜索引擎可以轻松解决这些问题。



问候..
Don't you have access to Google? See this : gridview with fixed header in asp.net[^]. Such questions can easily be solved using your favorite search engine.

Regards..


使用转发器。



将标题放在一个表格中,tr和在下面的表格中放入带有封闭div和上面定义属性的转发器。



使用这个,转发器数据将滚动,你的标题将冻结。



或在网格中,你可以设置showheader属性也设置为false并将标题放在不同的表中。
use repeater for that.

put header in a table, tr and in below table put repeater with enclosed div and above defined property.

Using this, repeater data will be scroll and your header will be freeze.

or in grid, you can set showheader property also set to false and put header in different table.


这篇关于DIV GRIDVIEW -STYLE PROPERTIES - 标题滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆