Flipped Grdivew control?

S

spitapps

In a traditional gridview control the items inserted(bind) into the
control are rows and the data is in columns. I have a customer who
wants the data fields as rows and the columns as the items being
inserted(bind). I have never seen a gridview control displayed in
this fashion but would like to use a control to accomplish this, so I
am wondering if this is possible or if someone has an idea on how to
accomplish this. Thanks.

normal gridview can I??
1 2 3

1 data data data
data data data

2 data data data
data data data

3 data data data
data data data
 
O

Otis Mukinfus

In a traditional gridview control the items inserted(bind) into the
control are rows and the data is in columns. I have a customer who
wants the data fields as rows and the columns as the items being
inserted(bind). I have never seen a gridview control displayed in
this fashion but would like to use a control to accomplish this, so I
am wondering if this is possible or if someone has an idea on how to
accomplish this. Thanks.

normal gridview can I??
1 2 3

1 data data data
data data data

2 data data data
data data data

3 data data data
data data data

Do it with your database query and you won't have to fiddle with the grid. If
you're using SQL Server 2005 you can do it using PIVOT.

Good luck with your project,

Otis Mukinfus

http://www.otismukinfus.com
http://www.arltex.com
http://www.tomchilders.com
http://www.n5ge.com
 

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