Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

gridview - 2 lines in 1 row

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
handicomp
Asked:
handicomp
  • 2
1 Solution
 
jjardineCommented:
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
 
arif_eqbalCommented:
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
 
handicompAuthor Commented:
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
 
jjardineCommented:
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
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now