473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 1719
Place the following code around your gridview conrol:

<table><tr><td>
<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><td>
<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
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...
0
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...
1
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...
2
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....
3
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...
3
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...
1
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,...
1
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...
1
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.