Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 12-Feb-13 21:39pm
Edited 12-Feb-13 21:41pm
joe_j3.9K
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 >
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

<div id=div1 style="overflow:scroll;height:250px;width:400px" >
 
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
</div>
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 468
1 Sergey Alexandrovich Kryukov 305
2 PhilLenoir 115
3 RajeeshMenoth 110
4 Uma Shankar Patel 80
0 Sergey Alexandrovich Kryukov 6,557
1 OriginalGriff 5,966
2 CPallini 2,473
3 Richard MacCutchan 1,687
4 Abhinav S 1,540


Advertise | Privacy | Mobile
Web02 | 2.8.140821.2 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100