[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 525
  • Last Modified:

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?
0
drpettitt
Asked:
drpettitt
  • 2
  • 2
1 Solution
 
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
 
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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now