Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: (untagged)
How to bring scrollbar in asp.net web page? and how to use scrollbar in gridview?
Posted

For simple HTML div you can enable scrollbar using the overfolow style property. All you need is to set overflow:auto; for div. For example
<br /><div style="overflow:auto;"><br />...............<br />...............<br /></div><br />

Alternatively you can place gridview inside this scrollbar enabled div.

 
Share this answer
 
kavinnagarajan wrote:
How to bring scrollbar in asp.net web page?

This default behaviour based on page height. You can customize it using CSS.
kavinnagarajan wrote:
and how to use scrollbar in gridview?

Put GridView Inside a DIV and fix the DIV Heightt.

 
Share this answer
 
You can also use ASP.NET Panel control. Fix the height and width of the Panel control and use Panel.ScrollBars property to enable Horizontal/Vertical scroll bars. It is actually rendered as a DIV tag.
 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900