开发者

I need horizontal scrolling for GridView

开发者 https://www.devze.com 2023-01-27 08:55 出处:网络
I\'ve got my GridView inside another Panel and I got scrollbars but GridView is to big even with paging. So user needs to scroll down to scroll horizontal (to see horizontal scrollbar).

I've got my GridView inside another Panel and I got scrollbars but GridView is to big even with paging. So user needs to scroll down to scroll horizontal (to see horizontal scrollbar).

How can I add any horizontal scrolling trick for my GridView in the Panel. Maybe something from javascript ? My js knowledges is still being poor.

I really开发者_如何学JAVA hard thinking on what that could be, maybe floating horizontal scrollbar ?

Thank you.


This can be done with the CSS Overflow property, see: http://www.w3schools.com/Css/pr_pos_overflow.asp

You may be able to add this to your asp Control, or see how the <asp:Panel> is rendered (I haven't used WebForms for a while, but I think it's a HTML <span>) and give it an appropriate element Id/class and set the CSS property in a seperate stylesheet.


I think this is what you are searching for? : scrollLeft

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号