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

Datagrid - shown vertically instead of horizontally?

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 well.

Sort of like this

Name : George
Address: House
Phone : 555-5555
Email : Ge****@nowhere.com
Pet : Dog
<many more fields>

As opposed to
Name Address Phone Email Pet <many more fields>
data data data data data

There is something called Datalist - not sure how to use it - it has an
option on it to for vertical or horizontal columns - but only for
repeaters. The Datagrid does not have this option.

Or is there a better way?

Thank,

Tmuld

Nov 21 '05 #1
4 4429
Just use a form and populate the text boxes from the selected record.
As you navigate through the datatables repopulate each control.

The datagrid is designed to show multiple records.

Doug

"Tmuld" <tm******@spliced.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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 well.

Sort of like this

Name : George
Address: House
Phone : 555-5555
Email : Ge****@nowhere.com
Pet : Dog
<many more fields>

As opposed to
Name Address Phone Email Pet <many more fields>
data data data data data

There is something called Datalist - not sure how to use it - it has an
option on it to for vertical or horizontal columns - but only for
repeaters. The Datagrid does not have this option.

Or is there a better way?

Thank,

Tmuld

Nov 21 '05 #2
The record has 30 fields.

Would I create 30 textboxes and bind them to each field? And have 30
labels beside each textbox?

I was hoping the datagrid could be displayed vertically. But if that
what has to be done, that is what has to be done.

Thanks,

Nov 21 '05 #3
Hi,

Sorry I do not have an example but you want to create a pivot
table.

Ken
----------------
"Tmuld" <tm******@spliced.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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 well.

Sort of like this

Name : George
Address: House
Phone : 555-5555
Email : Ge****@nowhere.com
Pet : Dog
<many more fields>

As opposed to
Name Address Phone Email Pet <many more fields>
data data data data data

There is something called Datalist - not sure how to use it - it has an
option on it to for vertical or horizontal columns - but only for
repeaters. The Datagrid does not have this option.

Or is there a better way?

Thank,

Tmuld
Nov 21 '05 #4
I found an example on the a web page. The guy who did this - SMART!

http://www.c-sharpcorner.com/Code/20...emInASPNet.asp

What is a pivot tabel and is it available with VS 2003?

Thanks,

Tmuld.

Nov 21 '05 #5

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
5
by: shanti.miller | last post by:
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...
3
by: gurusshetty | last post by:
Hi How to use following events in datagrid. Column level validation. Record level validation. Is there any way to display grid columns vertically instead of horizontally. regards,
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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:
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
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...
0
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,...
0
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...

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.