div and datagrid

G

Guest

Hello

<div style="BORDER-RIGHT: thin groove; BORDER-TOP: thin groove; Z-INDEX:
212; LEFT: 8px; OVERFLOW: auto; BORDER-LEFT: thin groove; WIDTH: 680px;
BORDER-BOTTOM: thin groove; POSITION: absolute; TOP: 544px; HEIGHT: 314px">

I used this Div on top of my datagrid so that datagrid can be shown in
horizontal scroll bar. It works fine, my data grid can show max 10 lines, my
problem is, when datagrid does not have 10 lines but 5 lines, the horizontal
bar will be 5 lines below. SO how can I make Div size change based on the
number of lines shown?
Thanks,
Jim.
 
B

Bruce Barker

use client script for this. resize the div based on the size of its content.
look at the doc's for the dom object model.


-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top