1

?

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;" runat="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

cnd
  • 32,616
  • 62
  • 183
  • 313
  • I think you are missing the overflow css setting on the panel. Try overflow-y:scroll; overflow-x:auto. Also you dont need two panels, just one can get the job done. – A G Feb 05 '10 at 06:02
  • @ Aseem Gautam overflow-y and x works only for some browsers, or not ? – cnd Feb 05 '10 at 06:17
  • The overflow property is supported in all major browsers. – A G Feb 05 '10 at 06:22
  • 1
    yes , but not with -x and -y , as I know ... also WebDev shows error on overflow-x . . . – cnd Feb 05 '10 at 06:40