Datagrid - shown vertically instead of horizontally?

T

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 : (e-mail address removed)
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
 
D

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
 
T

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,
 
K

Ken Tucker [MVP]

Hi,

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

Ken
----------------
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 : (e-mail address removed)
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top