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 enter image description here

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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -