开发者

GridView : How to make fixed Header Row

开发者 https://www.devze.com 2022-12-19 10:53 出处:网络
? Need fixed Header Row from Vertical Scroll bar, because my GridView is very large. Making 2 panels was my the best try (but also won\'t works) :

?

Need fixed Header Row from Vertical Scroll bar, because my GridView is very large.

Making 2 panels was my the best try (but also won't works) :

added :

      <asp:Panel style="width:720px;" ru开发者_C百科nat="server" ScrollBars="Horizontal">
      <asp:GridView ID="GV3" runat="server" />          
      <br />
      <asp:Label ID="justfortest" Text="11111" runat="server" />
      <hr />
      <asp:Panel style="max-height:400px;border-style: outset; border-width: 4px; " 
              ID=HGix runat="server" ScrollBars="Vertical">
            <asp:GridView ID="GridView2" runat="server" CellPadding="4" 
            .........................
            </asp:GridView>

       </asp:Panel>
       </asp:Panel>

why the horizontal line adds to second panel, it's ScrollBars="Vertical" but works as Both


Implementing a Fixed GridView Header in ASP.NET (Uses Panels)

Using jQuery

Stackoverflow

Freezing gridview header in a fixed width div Table - fixed header, scrollable body, most robust/simple solution?

0

精彩评论

暂无评论...
验证码 换一张
取 消