473,588 Members | 2,582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Gridview question

I have been using gridviews,

but when the data gets to much it makes the gridview exceed the size of
my webpage, is there anyway to stop this? or any methods to make it go
to a new line, or make it have a scroll down bar or something.?

Thanx in advance

Sep 17 '06 #1
2 1729
Place the following code around your gridview conrol:

<table><tr><t d>
<div style="height:[maxheight of your gridview]px overflow:auto;" >

<your gridview>

</div>
</td></tr></table>
Bonzol wrote:
I have been using gridviews,

but when the data gets to much it makes the gridview exceed the size of
my webpage, is there anyway to stop this? or any methods to make it go
to a new line, or make it have a scroll down bar or something.?

Thanx in advance
Sep 17 '06 #2
Place the following code around your gridview conrol:

<table><tr><t d>
<div style="height:[maxheight of your gridview]px; overflow:auto;" >

<your gridview>

</div>
</td></tr></table>

Bonzol wrote:
I have been using gridviews,

but when the data gets to much it makes the gridview exceed the size of
my webpage, is there anyway to stop this? or any methods to make it go
to a new line, or make it have a scroll down bar or something.?

Thanx in advance
Sep 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7335
by: Bishop | last post by:
I have a number of simple select queries that a user needs to be able to execute and display the data on the screen in a gridview. My thought was that I could use a Gridview set to dymanically generate columns and bound to a SQLDataSource. Then the user can click buttons (or whatever) and it changes the SelectCommand property of the SQLDataSource and re-binds the GridView. That worked great until I enabled paging. When paging is...
0
835
by: Mike P | last post by:
This should be a gridview 101 question, yet I can't get an answer...if I click a button (button field) in row in a gridview, how do I capture the values of the other fields in that row? Help would be very appreciated! Mike
1
314
by: mattdaddym | last post by:
Hi all, I have a situation where my users query an LDAP directory which I feed into a datatable and then display into a gridview (is there a better way?) I have added a column to the gridview with an "ADD" command. When it is clicked, the information is going to be written into a SQL database. Of course, more is to be done with this data later, but for now I am stuck. I have tried programatically reading the row and cell of the gridview...
2
1331
by: Robert | last post by:
I have a question regarding the gridview. Does the gridview persist the entire datasource in the viewstate? For example my datasource is returning 100 records, but my gridview only displays 10. Are the other 90 records stored in the viewstate? Thanks.
3
1465
by: Jason Wilson | last post by:
OK I'm obviously fairly new to ASP.NET 2.0. I've used gridviews in the past but only for pages with static queries that happen onload. Now I have pretty simple scenario and I think I've followed all the examples I've been able to find, but I still don't get the gridview to render: * I have a form with some textboxes and dropdownlist and a submit button * I have sqldatasource that uses form parameters to call a stored
3
311
by: Gonza | last post by:
Hi group, i have a question relatred to gridview and postback (i should probably know this by now, considering i've been working with .net for a few years now, but baahh). Why could a gridview (regular gridview, no custom controls inside, bound to a list<custom object>) loose it's value after a postback. I know that the datasource is not saved in viewstate, but why are the rows getting cleared???? Thanks in advace Gonzalo, from...
1
1094
by: Gunawan | last post by:
Hi All, I have populate data in gridview manually. SqlCommand cmd = new SqlCommand(strSQL, cn); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds, "hzFileUpload"); gvFile.Visible = true; gvFile.DataSource = ds; gvFile.DataBind(); cn.Close();
1
1433
by: Cirene | last post by:
I have a gridview that displays a listing of cars for sale. It's based on a "Cars" table. (The "Cars" table has a 1 to many relationship to "CarPictures" table.) On each gridview row (ie for each car) I want to show just 1 picture from the "CarPictures" table. Any suggestions as to how to do this?
1
946
by: Johnny Jörgensen | last post by:
I do a lot of winforms programming in C# and VB.NET, but not I've been asked to do an ASP.NET application, and that's a first for me. So I hope you will bear with this basic question, because I'm really puzzled. I've got an SQL Server 2005 DB, and for the sake of simplification, we can say that I've got two tables, tblBooks and tblAuthors. tblBooks contains an integer column called iAuthorID, and tblAuthors contain an integer field...
3
311
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have a gridview with several template columns and a few command button columns, column 1 and 2 are dropdown boxes, column 3 is a checkbox and column 4 is a text box, followed by command button columns. These are all for data entry and although I am populating the dropdown list boxes with an objectdatasource so the user can provide a selection, I am not binding the gridview to anything. The command buttons again are for the user to be...
0
8220
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7981
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8222
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6632
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5723
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5396
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3846
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1194
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.