Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 15th, 2009, 09:21 AM
Registered User
Join Date: Dec 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default giving scrollbars to gridview

<div id="griddiv" style="width:1020px; background-color:Green; position:fixed; overflow:hidden; left:0;" >
<asp:GridView id="GridView1" runat="server" HorizontalAlign="Center" GridLines="None" ForeColor="Black" PageSize="50" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" Width="100%">
i have the follwoing
with this the grid in the div gets fitted on the screen
i want the div width as per the screen with but the grid in the div shld have scroll bars if the coulmn exceeds the screen width so that user can scroll horizontally and vertically
Old March 19th, 2009, 02:21 PM
Authorized User
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts

Don't use width in Div tag.
Here is example:
<div style="height:160px; overflow:auto; vertical-align: top;">
Try to Set gridview width to 98 or 99%.
It works for me.

Similar Threads
Thread Thread Starter Forum Replies Last Post
scrollbars or wordwrap on listboxes? jonicholson VB.NET 2002/2003 Basics 6 August 15th, 2006 11:39 AM
Hiding scrollbars. rupen HTML Code Clinic 1 September 5th, 2005 07:00 AM
scrollbars=? larry Javascript How-To 2 August 28th, 2004 02:31 AM
Scrollbars on datagrids - c# ntsiro C# 2 July 1st, 2004 03:17 PM
Scrollbars on listbox Ciarano VB How-To 2 March 31st, 2004 05:07 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.