dandavis1
Posts: 18
|
Posted: 07/26/2007, 1:09 PM |
|
Hi, would you please let me know how to make the "Grid" portion of my "Grid & Record" page a scrolling box (long list box with scroll bars) such that when you click on a row, it will automatically open in the "Record" portion?
Sincerely,
Dan
|
|
|
wdhindman
Posts: 6
|
Posted: 07/29/2007, 4:41 PM |
|
Dan
...an asp grid has no native scroll component but you can use html to get the same effect:
...in your html editor, insert a <div> tag before and after the table tag ...be sure you get the specfic nested table that contains the grid itself
<div id="scroll1" style="OVERFLOW: auto; WIDTH: 200px; HEIGHT: 400px">
<table>
...grid
</table>
</div>
...the OVERFLOW will produce a vertical scroll bar for any grid contents that exceed the HEIGHT spec and a horizontal one for any grid contents that exceed the WIDTH spec ...if you combine this with table or css constraints, you can precisely control the grid and its scroll functionality.
...hth
_________________
William Hindman
Dejpol Systems
Loxahatchee, FL |
|
|
dandavis1
Posts: 18
|
Posted: 07/29/2007, 7:44 PM |
|
Thanks.
|
|
|
|