ASP.Net Gridview scrollbar top of the grid
Posted on 2014-02-21
I have a asp:gridview on the website I am developing. The amount of data can be very large and can extend the gridview both horizontally and vertically. The horizontal and vertical are both dynamic in size.
Can I set the size of the grid so it always fits in the screen no matter what the size of screen and then set the vertical scroll and the horizontal scroll.
Here is what I have sio far
<div id="divGrid" style="width:100%; overflow:auto;">
<asp:GridView ID="grdExport" runat="server" AutoGenerateColumns="False"
EmptyDataText="No records found.">
<AlternatingRowStyle BackColor="#C4C4FF" />
<HeaderStyle BackColor="#000066" ForeColor="White" />