Struggling to contain a gridview within a div with relative widths? It always seems to overflow its parent container when there are too many columns.
A fixed width can help, but resizing the window causes the gridview to overflow once again due to its specific width.
<div style="overflow: scroll; width: 1000px; Height: 300px;">
<asp:GridView id="GridView1" runat="server" />
</div>
Is it possible to specify a relative width for the container and still use overflow:scroll so that the gridview resizes along with its container when the window size changes?
Encountering issues while using width:100%
. Oddly enough, the gridview overflows at 100% zoom but not at lower zoom levels. Quite perplexing!
Any assistance offered would be greatly appreciated.
100% Zoom:
https://i.sstatic.net/E2jON.png
75% Zoom:
https://i.sstatic.net/QsHSm.png
65% Zoom: