Solved

C1 FlexGridClassic Merge Headers

Posted on 2004-04-28
2
764 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
Comment Utility
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 69

Expert Comment

by:Éric Moreau
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
I need C# converted to VB.net 1 52
GridDataView 6 44
Form design in vb.net 7 18
Round up to 100% in .NET 10 42
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

18 Experts available now in Live!

Get 1:1 Help Now