Scrolling in a div problem

  • Thread starter Thread starter Tina
  • Start date Start date
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
 
on the div. You need to set the css property overflow to hidden and fix the
height.


{
height:200px;
overflow:hidden;

}
 
Back
Top