ASP.NET - Vertical Scroll Bar

Asked By madhavi on 27-Dec-10 04:56 AM
how i can put the vertical scrollbar to the aspx page or datalistview
Reena Jain replied to madhavi on 27-Dec-10 05:00 AM
hi,

Dock property defines which borders of the control are bound to the container. If you place a DataGridView control in a panel and set DataGridView's dock property to DockStyle.Fill, the datagridview will fill the panel.  Even so, the ScrollBar is also visible.

Hope this will help you
Danasegarane Arunachalam replied to madhavi on 27-Dec-10 05:02 AM
<div style="overflow:auto;height:300px;">
<!-- your listview, etc. -->
</div>
Vivek Jagga replied to madhavi on 27-Dec-10 05:16 AM
Madhvi,

Put your control in a html div and set overflow and height attribute as

<div style="overflow-y:auto;height:200px;">
put your control here
</div>
Daivagna Nanavati replied to madhavi on 27-Dec-10 01:18 PM
Hi Madhavi

Getting scroll bar is independent of control you are using, you can wrap the control inside div tag and apply some css class to achive what you want

<div class="container">
   <asp:repeater>.....
 
</div>

and css class would be like

.container
{
  Height:400px;
  overflowauto;
 
}

let me know

Thanks