c# - How to make X-Scroll in a gridView asp.net? -
i'm trying add scroll bars in both x , y can add y-scroll. @ moment, gridview showing partial data, missing 3-4 columns need use x-scroll. i've tried "overflow-x: scroll;" doesn't work.
my source code
<div style= "overflow-x:scroll; overflow:scroll; max-height: 150px; width: 800px"> <asp:gridview id="gridviewupbus" runat="server" autogeneratecolumns="false" font-names="arial" font-size="small" horizontalalign="center"> <columns> <asp:boundfield datafield="subcatid" headertext="sub category id"> <itemstyle width="10%" /> </asp:boundfield>
if run, looks this. 2 more columns not showing
could achieved not using javascript? if need use "jquery-1.4.1.js" or "gridviewscroll.min.js" can download it? sorry i'm pretty new programming , don't know how use javascript or jquery. it'd great if add boarder lines in gridview. in advance!
css case sensitive overflow
wont work overflow
will. try
<div style= "overflow:auto; max-height: 150px; width: 800px">
to apply croll bars if needed or:
<div style= "overflow:scroll; max-height: 150px; width: 800px">
to have scrollbars.
finally, avoid using inline style, apply class instead.
Comments
Post a Comment