Click here to Skip to main content
15,908,173 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
how to set the scrooling of grid view?
Posted

you can put your gridview inside div as:
XML
<div style="overflow:scroll; height: 50px; width: 50px">
  <asp:GridView ID="myGrid" runat="server />
</div>


or in a pnel as:
XML
<asp:Panel ID="scrollableGridArea" runat="server" style="overflow:scroll; height: 50px; width: 50px">
  <asp:GridView ID="myGrid" runat="server />
</asp:Panel>
 
Share this answer
 
Its so simple place your gridview inside any container like panel,div..
fix the height of container control
that's it...
 
Share this answer
 
Comments
Ankur\m/ 9-Apr-12 6:45am    
He could have actually got the code if he would have Googled - http://www.beansoftware.com/ASP.NET-FAQ/GridView-ScrollBars.aspx
tulasiram3975 9-Apr-12 7:04am    
ok let him know..

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