cnd
cnd

Reputation: 33744

I need horizontal scrolling for GridView

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 hard thinking on what that could be, maybe floating horizontal scrollbar ?

Thank you.

Upvotes: 0

Views: 1964

Answers (2)

rbhro
rbhro

Reputation: 208

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

Upvotes: 1

StuperUser
StuperUser

Reputation: 10850

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.

Upvotes: 1

Related Questions