• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2011
  • Last Modified:

Can DetailsView display multiple rows of data?

I'm trying to create a control similar to DetailsView, but I want to display more than one row from a database.  Each row in the first column should display the header value.  Then, each consecutive column should correspond to a database row.  

How can I do this with .NET?

Is there a way to flip the rows and columns of GridView?
0
cgipisani
Asked:
cgipisani
2 Solutions
 
Bob LearnedCommented:
If you are bound to a DataTable, then there are ways to create rows from column data.

Bob
0
 
vnvkCommented:
it is not impossible, but a bit tough. Details view gives the data for one single record.

You may have to come up with a custom control that uses a grid view and detail view controls. Grid view as the main control and the detail view as the inner control for each column.

Object databinding has to be taken care of properly thorugh the code behind.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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