Home All Groups Group Topic Archive Search About

Datagrid - shown vertically instead of horizontally?

Author
12 Apr 2005 3:02 PM
Tmuld
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  : Geo***@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

Author
12 Apr 2005 4:09 PM
Doug Bell
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

Show quoteHide quote
"Tmuld" <tmuld***@spliced.com> wrote in message
news:1113318171.026771.319390@g14g2000cwa.googlegroups.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  : Geo***@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
>
Author
12 Apr 2005 4:37 PM
Tmuld
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,
Author
12 Apr 2005 9:24 PM
Ken Tucker [MVP]
Hi,

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

Ken
----------------
"Tmuld" <tmuld***@spliced.com> wrote in message
news:1113318171.026771.319390@g14g2000cwa.googlegroups.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  : Geo***@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
Author
14 Apr 2005 3:40 PM
Tmuld
I found an example on the a web page.  The guy who did this - SMART!

http://www.c-sharpcorner.com/Code/2003/July/NavigationSystemInASPNet.asp

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

Thanks,

Tmuld.