473,799 Members | 3,061 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4453
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******@splic ed.com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.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******@splic ed.com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.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
2155
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 and vertically aligned. I want the other cells with data to also be centered so that it is congruent with the checkbox. I'm having problems centering the data vertically. The data always is aligned to the top of the cell, and I want it to...
0
1589
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 scroll down vertically the datagrid, header is not shown in the datagrid view as it is scrolled up. I want datagrid to be scrollable but header of the datagrid should always be visible. To solve this problem I put a dummy datagrid at the top of
3
1358
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 colunms in a datagrid vertically. How would I do this? I am desprate. Does anyone know how to do it? Thanks in advance Tom
1
5292
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 the user doesn't have to scroll horizontally. Essentially, I want to wrap a datagrid row (not text in individual columns) with as much control as possible. Make sense? While this seems simple enough on the surface, I can't figure out how to do...
1
300
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 original post) ------------------------------------- I have a question regarding freeze header on datagrid when scrolling. I've found this site
6
5620
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
2860
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 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...
3
1185
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
1986
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 button. There are a lot of fields across, and my Network Admins would like a way of editing/updating each issue seperately in a a vertical form. I need a way of clicking on the edit button ,bringing up a form with the record, editng the fields, and...
0
9686
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9540
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10250
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10026
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
5463
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
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
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.