Is there a way to flip a .NET 2.0 GridView on it's side so that columns are actually rows?

I currently have a requirement to implement a grid view whose columns are actually rows of the underlying recordset. Is there a way to accomplish this?
drpettittAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vs1784Commented:
i doubt you can do it with grid view, however you can do it with datalist using repeat direction propery.

Try using dataset if you can.

Hope it helps.
Thanks
0
JimBrandleyCommented:
You could also create a "rotated" DataTable from the one you have, adding one column for each row in the original. However, the DataType for each column would have to be string. Then populate the rows of the new on with the corresponding column from the old.

Jim
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
drpettittAuthor Commented:
vs1784,

Thanks for the suggestion concerning using a datalist. I researched this and tryed to make it happen, however, given my time constraints it is too big of a hill to climb right now.

Thanks,
Doug
0
drpettittAuthor Commented:
JimBrandley,

This seems to be the most straightforward, simplest, and timely method with respect to effort solution.

Thanks for the help,
Doug
0
JimBrandleyCommented:
Doug - Glad that helped a bit. If you have trouble with the detalis, and the time to pursue it, let us know. Good luck.

Jim
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.