473,388 Members | 1,405 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,388 software developers and data experts.

Forcing datagrid to expand horizontally instead of vertically

I've got a grid that uses paging and displays a maximum of 10 records
at a time.
Sometimes the fields have a lot of data in them and the datagrid takes
up way too much horizontal space. I've tried setting the height and it
doesn't do anything. I can set the width to some very large number
like 3000px and that works ok, but it's a waste when the data doesn't
require that much space.
Is there a way to limit the height of the grid or of the rows
themselves and force the grid to expand horizontally instead of
vertically when there is a lot of data?
I've seen some examples of using divs with scrolling, but I don't want
the user to have to scroll vertically. Scrolling horizontally and
having the grid take up several pages sideways is fine.

Thanks

Jun 15 '06 #1
5 2840
Hi,

how about using dataList with paging? You could put DataList to repeat
horizontally.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
<sh***********@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
I've got a grid that uses paging and displays a maximum of 10 records
at a time.
Sometimes the fields have a lot of data in them and the datagrid takes
up way too much horizontal space. I've tried setting the height and it
doesn't do anything. I can set the width to some very large number
like 3000px and that works ok, but it's a waste when the data doesn't
require that much space.
Is there a way to limit the height of the grid or of the rows
themselves and force the grid to expand horizontally instead of
vertically when there is a lot of data?
I've seen some examples of using divs with scrolling, but I don't want
the user to have to scroll vertically. Scrolling horizontally and
having the grid take up several pages sideways is fine.

Thanks

Jun 15 '06 #2
I really want the display to look like a grid, so I'm not sure if there
is a way to do that with a datalist, but even if there is, it's not a
big enough deal for me to spend a bunch of time rewriting code. I was
just hoping that there was something fairly simple I could do to limit
the grid to a certain height or limit each row to a certain number of
lines of text. But everything I try just seems to get ignored by IE
when it's time to render the html.

Teemu Keiski wrote:
Hi,

how about using dataList with paging? You could put DataList to repeat
horizontally.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
<sh***********@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
I've got a grid that uses paging and displays a maximum of 10 records
at a time.
Sometimes the fields have a lot of data in them and the datagrid takes
up way too much horizontal space. I've tried setting the height and it
doesn't do anything. I can set the width to some very large number
like 3000px and that works ok, but it's a waste when the data doesn't
require that much space.
Is there a way to limit the height of the grid or of the rows
themselves and force the grid to expand horizontally instead of
vertically when there is a lot of data?
I've seen some examples of using divs with scrolling, but I don't want
the user to have to scroll vertically. Scrolling horizontally and
having the grid take up several pages sideways is fine.

Thanks


Jun 15 '06 #3
Hi...

Did you get your problem solved?? I have a similar requirement as
yours. Could you please share your solution with the group?

Thanks
sh***********@gmail.com wrote:
I really want the display to look like a grid, so I'm not sure if there
is a way to do that with a datalist, but even if there is, it's not a
big enough deal for me to spend a bunch of time rewriting code. I was
just hoping that there was something fairly simple I could do to limit
the grid to a certain height or limit each row to a certain number of
lines of text. But everything I try just seems to get ignored by IE
when it's time to render the html.

Teemu Keiski wrote:
Hi,

how about using dataList with paging? You could put DataList to repeat
horizontally.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
<sh***********@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
I've got a grid that uses paging and displays a maximum of 10 records
at a time.
Sometimes the fields have a lot of data in them and the datagrid takes
up way too much horizontal space. I've tried setting the height and it
doesn't do anything. I can set the width to some very large number
like 3000px and that works ok, but it's a waste when the data doesn't
require that much space.
Is there a way to limit the height of the grid or of the rows
themselves and force the grid to expand horizontally instead of
vertically when there is a lot of data?
I've seen some examples of using divs with scrolling, but I don't want
the user to have to scroll vertically. Scrolling horizontally and
having the grid take up several pages sideways is fine.

Thanks


Jun 16 '06 #4
Hi...

Did you get your problem solved?? I have a similar requirement as
yours. Could you please share your solution with the group?

Thanks
sh***********@gmail.com wrote:
I really want the display to look like a grid, so I'm not sure if there
is a way to do that with a datalist, but even if there is, it's not a
big enough deal for me to spend a bunch of time rewriting code. I was
just hoping that there was something fairly simple I could do to limit
the grid to a certain height or limit each row to a certain number of
lines of text. But everything I try just seems to get ignored by IE
when it's time to render the html.

Teemu Keiski wrote:
Hi,

how about using dataList with paging? You could put DataList to repeat
horizontally.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
<sh***********@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
I've got a grid that uses paging and displays a maximum of 10 records
at a time.
Sometimes the fields have a lot of data in them and the datagrid takes
up way too much horizontal space. I've tried setting the height and it
doesn't do anything. I can set the width to some very large number
like 3000px and that works ok, but it's a waste when the data doesn't
require that much space.
Is there a way to limit the height of the grid or of the rows
themselves and force the grid to expand horizontally instead of
vertically when there is a lot of data?
I've seen some examples of using divs with scrolling, but I don't want
the user to have to scroll vertically. Scrolling horizontally and
having the grid take up several pages sideways is fine.

Thanks


Jun 16 '06 #5
Hi...

Did you get your problem solved?? I have a similar requirement as
yours. Could you please share your solution with the group?

Thanks
sh***********@gmail.com wrote:
I really want the display to look like a grid, so I'm not sure if there
is a way to do that with a datalist, but even if there is, it's not a
big enough deal for me to spend a bunch of time rewriting code. I was
just hoping that there was something fairly simple I could do to limit
the grid to a certain height or limit each row to a certain number of
lines of text. But everything I try just seems to get ignored by IE
when it's time to render the html.

Teemu Keiski wrote:
Hi,

how about using dataList with paging? You could put DataList to repeat
horizontally.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
<sh***********@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
I've got a grid that uses paging and displays a maximum of 10 records
at a time.
Sometimes the fields have a lot of data in them and the datagrid takes
up way too much horizontal space. I've tried setting the height and it
doesn't do anything. I can set the width to some very large number
like 3000px and that works ok, but it's a waste when the data doesn't
require that much space.
Is there a way to limit the height of the grid or of the rows
themselves and force the grid to expand horizontally instead of
vertically when there is a lot of data?
I've seen some examples of using divs with scrolling, but I don't want
the user to have to scroll vertically. Scrolling horizontally and
having the grid take up several pages sideways is fine.

Thanks


Jun 16 '06 #6

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

Similar topics

2
by: anonymous | last post by:
I have created a DataGrid control with checkboxes, TextBoxes, ComboBoxes, and NumericUpDowns. Since I used the DataGridBoolColumn, the checkbox is displayed in the center of the cell, horizontally...
0
by: Ashvin Navare | last post by:
Hi, I want to make a datagrid to be vertically scrollable instead of paging in it. So I have put that datagrid html tags inside <div></div> tags and made that div scrollable. Due to this if I...
3
by: Tom Le | last post by:
Hi, I have a database table with 20 colunms. I don't want to display 20 colunm horizontally in a datagrid because it create a horizontal scroll bar on the browser. Instead, I want to display 20...
1
by: Craig Banks | last post by:
If a row of data in a dataset has a lot of columns the row displaying the data in a datagrid will run way off the screen. What I'd like to do is display a row of data over several datagrid rows so...
1
by: Henry | last post by:
Hi. I've posted this at another discussion board(WebControls) and I was wondering if anyone knows or could help me in the right path to solving my problem. Thanks. Henry (Here is the...
6
by: Li Pang | last post by:
I'd like to display data in a datagrid horizontally instead of vertically (ie, rotate datagrid by 90 degree). Anyone knows how? Thanks in advance
4
by: Tmuld | last post by:
Hello, I have a page that needs to only show 1 record at a time - but there are many fields - I want to display it vertically instead of hornizonatlly. The headers will run vertically as...
4
by: cooltech77 | last post by:
Hi, I am trying to build the following functionality in the datagrid. I have a lot of columns in the datagrid which are being populated from the database and the user needs to scroll...
8
by: =?Utf-8?B?bWlrZWc=?= | last post by:
Hi, I am building a small Help Desk application for my company and need to be able to edit "open" help desk issues. I use a simple datagrid to display each issue (6 per page) , with an Edit...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
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...
0
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...

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.