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
Solved

C1 FlexGridClassic Merge Headers

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…

840 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