Click here to Skip to main content
15,891,597 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how to set a page size in asp.net?how to add scroll bar to grid view?how to set a size for scroll bar?
Posted
Updated 12-Feb-13 21:41pm
v2

<div id=div1 style="overflow:scroll;height:250px;width:400px" >

    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
</div>
 
Share this answer
 
1. You can set page size by adding property like allowpaging="true" and pagesize="10" in grid view
2. And for scroll bar you can try like : < div style="width: 100%; height: 400px; overflow: scroll">your GridView < / div >
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



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