473,326 Members | 2,127 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,326 software developers and data experts.

Display data in a datagrid

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 colunms in a datagrid vertically. How
would I do this? I am desprate. Does anyone know how to
do it?
Thanks in advance
Tom
Nov 18 '05 #1
3 1338
Hey,

Interesting... Might be an easier way to get this done and i would look up
msdn
Just a thought..
How bout writing a code to transform the DataTable...
if read the count of row and columns and iterate....
Add the new rows to a Datatable and bind it... i know sound like a lot of
work...
should be another way out....

Regards,

Hermit Dave
"Tom Le" <we*******@menshealthtech.com> wrote in message
news:02****************************@phx.gbl...
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 colunms in a datagrid vertically. How
would I do this? I am desprate. Does anyone know how to
do it?
Thanks in advance
Tom

Nov 18 '05 #2
See if this is what you are looking for:

http://www.networkip.net/tidbits/flip.htm

"Tom Le" <we*******@menshealthtech.com> wrote in message
news:02****************************@phx.gbl...
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 colunms in a datagrid vertically. How
would I do this? I am desprate. Does anyone know how to
do it?
Thanks in advance
Tom

Nov 18 '05 #3
You could use a DataList and organize the data anyway you want.
"Tom Le" <we*******@menshealthtech.com> wrote in message
news:02****************************@phx.gbl...
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 colunms in a datagrid vertically. How
would I do this? I am desprate. Does anyone know how to
do it?
Thanks in advance
Tom

Nov 18 '05 #4

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

Similar topics

3
by: Chumley the Walrus | last post by:
IN my code behind .vb page for a delete records script (this also does a deletion confirmation with a javascript popup, this gets called on my front .aspx page with the datagrid), I'm not sure if...
5
by: BlueFox | last post by:
Hi : When i display the DataBase in System.Windows.Forms. DataGrid ,i want to display the line number of ever line .How can i do it ? Any help may be Good .
18
by: Alpha | last post by:
Hi, I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a listbox that I have binded to a dataset table, "source" which has 3 columns. I would like to display 2 of those...
3
by: Andrew S. Giles | last post by:
Hello, I am importing a flat text file, and putting it into a datagrid for display on a form. Currently the users have their dates and times seperated. I have two fields, therefore in the...
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...
2
by: news | last post by:
hi im new in the .net environnement i have a work to do in school im able to display a datagrid using a database in access and im also able to display a datagrid using a database in foxpro 8.0...
2
by: Cindy | last post by:
Hello. For some reason, I am able to "connect" to the Northwind database whenever I use the wizard; however, when I run the application, my datagrid does not display. Here are the exact steps I...
2
by: harry | last post by:
Hi all, I have a datagrid (language C#) populated using a stored procedure. I want one of the column to display complete name instead of abbreviation. Can I change the display dynamically in the...
2
by: pozze | last post by:
Hi, I need to display images and other record information retrieved from an SQL 2005 database in a datagrid on a web page. I'm coding in VB .net I have recently changed over from VB ASP and i'm...
2
by: simonyong | last post by:
hello, anyone.. im newbie to asp.net my problem is : My task is related to view all data from a table called "employee " i had create a datagrid where called data from database and...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.