UnlockiPhone45343
New Member
I want to know how can i make my asp.net gridview scrollable vertically and horizontally without using CSS and html.this is my code on how I make gridview scrollablein CSS:\[code\]div#scroll {border: 1px solid #C0C0C0;background-color: #F0F0F0;width: 584px; height: 180px; overflow: scroll; position: relative;left: 39px;top: 813px;}\[/code\]in HTML:\[code\]<div id = "scroll"><asp:GridView ID="tblitem" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" style="z-index: 1; left: -2px; top: 0px; position: absolute; height: 57px; width: 584px" AutoGenerateSelectButton="True" Visible="False"> <AlternatingRowStyle BackColor="White" /> <EditRowStyle BackColor="#7C6F57" /> <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#E3EAEB" /> <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#F8FAFA" /> <SortedAscendingHeaderStyle BackColor="#246B61" /> <SortedDescendingCellStyle BackColor="#D4DFE1" /> <SortedDescendingHeaderStyle BackColor="#15524A" /> </asp:GridView> </div>\[/code\]I dont want to use this because when I hide my gridview, the div scroll that I make is visible.