Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi sir,

I want set the limited number of rows on the datagrid others should be scrolled .
Please help me to do this.

By
Nandakumar.S
Posted
Updated 18-Nov-10 21:27pm
v2
Comments
[no name] 19-Nov-10 1:10am    
Clarify what you are asking for please.
Sunasara Imdadhusen 19-Nov-10 1:24am    
Using following answer you need to allow paging to false

1 solution

Hi,

use following to give scroll bar in GridView

XML
<div style="height: 300px; width: 100%; overflow: auto; text-align: left">
       <asp:GridView runat="server" ID="gvScrollableData" Width="98%">
       </asp:GridView>
   </div>



Please do let me know, if you have any doubt.

Please provide "Vote":thumbsup: if this would be helpful, and make "Accept Answer" if this would be correct answer.:rose:

Thanks,
Imdadhusen
 
Share this answer
 
Comments
bony_clerk 3-Dec-10 9:13am    
tricky solution!!

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