|
-
March 16th, 2009, 10:58 AM
#1
GridView1 Control...
How can we add scrollbar with GridView1 control in ASP.NET..
I am using VisualStudio2008...
Thanks
-
March 16th, 2009, 03:51 PM
#2
Re: GridView1 Control...
put the gridview control inside of a "div". then set the "overflow" property of the div to "auto".
-
March 16th, 2009, 04:09 PM
#3
Re: GridView1 Control...
I have tried it...Not working
-
March 16th, 2009, 11:18 PM
#4
Re: GridView1 Control...
Put it inside a panel and set the width and height properties of the panel and scroll bars to both. Here is some sample code
Code:
<asp:Panel ID="mypdanel" runat="server" ScrollBars="Both" Height="188px">
<asp:GridView ID="GridView1" runat="server" Height="169px" Width="918px"></asp:GridView>
</asp:Panel>
This will give you a scrollable grid view.
Warm Regards,
-
March 17th, 2009, 09:03 AM
#5
Re: GridView1 Control...
 Originally Posted by Frank100
I have tried it...Not working 
putting a grid inside of a div does work...
Code:
<div style="overflow: auto;height: 690px">
<asp:GridView ID="GridView1" runat="server" Width="660px">
</asp:GridView>
</div>
that, along with the panel as stated above will both work.
-
March 17th, 2009, 12:29 PM
#6
Re: GridView1 Control...
Thanks panel and style both working..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|