Solved

C1 FlexGridClassic Merge Headers

Posted on 2004-04-28
2
781 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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

679 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