Solved

gridview - 2 lines in 1 row

Posted on 2006-07-19
4
230 Views
Last Modified: 2010-04-23
My question is about gridviews.  I have two names associated with each row & instead of putting them in different columns I would like them to be in the same column but separate lines in the row.  Any help would be appreciated. Thanks.
0
Comment
Question by:handicomp
  • 2
4 Comments
 
LVL 14

Expert Comment

by:jjardine
ID: 17140369
I believe that you would have to do some custom extension to the gridview.  By default the gridview does not support header merges..   It sounds like that is what you are trying to do.  You could always look at infragistics controls that support column merging.
0
 
LVL 19

Expert Comment

by:arif_eqbal
ID: 17143805
is it like First Name and Last Name columns, and you want to show the Full Name instead by merging data from these two cols ?
and it is a Windows App is it ?
0
 

Author Comment

by:handicomp
ID: 17145374
Yes it is a Windows App.  Here's what I need:

Team 1      Player 1
                 Player 2
-----------------------------------------------
Team 2      Player 1
                 Player 2
-----------------------------------------------

I've been thinking about it & it seems like the way to do it might be to use color to make it look like it is 1 row when it really is 2.
0
 
LVL 14

Accepted Solution

by:
jjardine earned 500 total points
ID: 17145709
Take a look at this blog.  It describes this functionality.  I think it is setting the rowspan value.

http://blogs.msdn.com/mattdotson/articles/541795.aspx
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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