Scrolling in a div problem

T

Tina

I wrote a user control called EditGrid. It's only visual component is a
GridView. My problem is that when I use it on an aspx page it won't scroll
inside a DIV. ...

<div id="EGDiv" style=" WIDTH: 100%; HEIGHT: 100px; overflow: auto;">
<uc1:EditGrid ID="myEG" runat="server" />
</div>
The vertical scroll bars show to the right but the EditGrid's GridView runs
down the page covering up everything below.

Does my user control have to have some property set or some behavior added
so that it will scroll inside a grid?
Thanks,
Gary
 
R

Rain

on the div. You need to set the css property overflow to hidden and fix the
height.


{
height:200px;
overflow:hidden;

}
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top