ASP.NET 2005:  Horizontal columns in a gridview?

Posted on 2008-02-03
Medium Priority
Last Modified: 2012-08-13
I want to customize a gridview so the columns display data horizontally.  Basically what my end result will look like is something close to this example here:


I will have photos  in each row, and data that is displayed horizontally (name, address, title, etc).  Imagine a gridview where you see a photo of someone, and their contact information to the left.

How can I do this?  And if not a gridview, what is the best way?  Alll my data is stored in MSSQL 2005
Question by:arthurh88
LVL 12

Accepted Solution

Munawar Hussain earned 2000 total points
ID: 20812024
for that type of data or view it would be best to use nested controls

for first 2 columns or one(showing pic) use gridview and the for horizontal option use a datalist inside gridview


LVL 11

Expert Comment

by:Salim Fayad
ID: 20812567
It would be better to use DataList where you put:
1. First column: label
2. Second column: image
3. Third column: gridview

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
There is a wide range of advantages associated with the use of ASP.NET. This is why this programming framework is used to create excellent enterprise-class websites, technologies, and web applications.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

624 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