Solved

gridview - 2 lines in 1 row

Posted on 2006-07-19
4
226 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

17 Experts available now in Live!

Get 1:1 Help Now