By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,326 Members | 2,726 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,326 IT Pros & Developers. It's quick & easy.

Datagrid - shown vertically instead of horizontally?

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.