By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,730 Members | 1,500 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,730 IT Pros & Developers. It's quick & easy.

horizontal scrollbar in a div causing another scroll bar to more.

P: n/a
I've got a grid inside a div so that it's got scroll bars around it.
What I want to do is have the header row fixed at the top, so that the
vertical scroll bars scroll just the data rows of the grid while the
horizontal scroll bar scrolls both the data and the header row.

The only way I can think of doing it is putting the data portion as a
seperate grid in a div and the header in a seperate div. I would force the
header div not to have scroll bars, and use javascript on the horizontal
scrollbar of the data div to move the header so that it always lines up with
the data grid's columns.

My question is, what would the javascript look like?
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

forgot to mention: once there, go to table control, click
on "Table Theme 9", and what you are looking for is "Table
Control Example : 2"

-----Original Message-----
I've got a grid inside a div so that it's got scroll bars around it.What I want to do is have the header row fixed at the top, so that thevertical scroll bars scroll just the data rows of the grid while thehorizontal scroll bar scrolls both the data and the header row.
The only way I can think of doing it is putting the data portion as aseperate grid in a div and the header in a seperate div. I would force theheader div not to have scroll bars, and use javascript on the horizontalscrollbar of the data div to move the header so that it always lines up withthe data grid's columns.

My question is, what would the javascript look like?
.

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.