Solved

Can DetailsView display multiple rows of data?

Posted on 2006-11-29
2
1,847 Views
Last Modified: 2008-01-09
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
Comment
Question by:cgipisani
2 Comments
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 50 total points
ID: 18039791
If you are bound to a DataTable, then there are ways to create rows from column data.

Bob
0
 
LVL 7

Accepted Solution

by:
vnvk earned 200 total points
ID: 18047599
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now