具有固定标题的可滚动GridView

时间:2013-10-25 13:20:21

标签: javascript jquery css3 gridview

我试图将可滚动的gridview制作成gv_RegionMaster。我动态地附加数据库。我也用这个尝试过CSS。但还没有工作。

我知道它的'一个重复的问题,但它不符合我的代码。如果有人可以帮助我,请告诉我。

{
<script type="text/stylesheet">
.header
{
    position: relative;
    z-index: 10;
    overflow:scroll;
    max-height:500px;
    width:600px
}
</script>
    <asp:Button ID="btn_DisplayGrid" runat="server" Text="Click here"/>
    <br /><br />

   <div id="DivMainContent" visible="false" runat="server" align="center">

        <asp:GridView ID="gv_RegionMaster" runat="server" AllowPaging="false" Height="500px" Width="600px" style="overflow:auto">
            <HeaderStyle cssClass="header" BackColor="Gray"/>
        </asp:GridView>
    </div>
}

0 个答案:

没有答案
相关问题