Solved

C1 FlexGridClassic Merge Headers

Posted on 2004-04-28
2
784 Views
Last Modified: 2012-08-14
I've used a Flex grdi from C1 to display some info.
 How can I merge the header from the Grid ? I have two fixed rows and I've set the merge style to FixedOnly. I've merged cells from different rows but I can't merge cell from same row.
 I also can't acces Row collection to set AllowMerging to true.It says it is a read-only collection.
 Thanks !!!
0
Comment
Question by:CosminSocaciu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 250 total points
ID: 10964034
There was some changes to the interface for the Classic grid.  You will notice a lot of methods/properties that are prefixed with set_ and get_.  

You need to use the method .set_MergeCol(0, True)

Bob
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 10972670
I am using this code to merge cells of a row and set their values:

                .AllowMerging = AllowMergingEnum.FixedOnly

                ' create row headers
                .Rows(0).AllowMerging = True

                '---------- Create group header (merge some cells) ------------------
                ' Group 1 merge
                Dim rng As CellRange '= .GetCellRange(0, 0, 0, 1)
                'rng.Data = "Heading"

                rng = .GetCellRange(0, 3, 0, 7)
                rng.Data = "Transactions"

                ' Group 3 merge
                rng = .GetCellRange(0, 8, 0, 12)
                rng.Data = "Cumulative"

                ' Group 4 merge
                rng = .GetCellRange(0, 13, 0, 17)
                rng.Data = "Other Info"
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

732 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