Solved

gridview - 2 lines in 1 row

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

20 Experts available now in Live!

Get 1:1 Help Now