Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl and CellJoin problems
GridCtrl and CellJoin problems [message #27833] Thu, 05 August 2010 21:23 Go to previous message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
Hello, I am having problems figuring out the proper method for doing the cell joins. What I want in the end is a 2 row header and table that looks like this:

+--------+---------------+---------------+
|        |      Mode     |      Band     |
|  Need  +---------------+---------------+
|        | P | L | E | Q | P | L | E | Q |
+--------+---+---+---+---+---+---+---+---+
| ITU Z  | Y | W | C |   | N | Y | Y | Y |
| CQ Z   | Y | W | C |   | N | Y | Y | Y |
| State  |   | Y | W | N | N | Y | Y | Y |
+--------+---+---+---+---+---+---+---+---+


Need, Mode, Band being major headers and the P,L,E,Q's being minor headers under the grouping of Mode and Band.

Right now I am working on just making the Needs and Band header setup work. I have something like this:

needs.AddColumn("Need");
needs.AddColumn("Band");
needs.AddColumn("bp");
needs.AddColumn("bl");
needs.AddColumn("be");
needs.AddColumn("bq");
needs.AddRow("","P","L","E","Q");
needs.SetFixedRows(2);
needs.JoinFixedCells(0,0,1,1); // Needs span 1 row


but anything I try with the next step just messes things all up. I guess I am not understanding the parameters:

int left, int top, int right, int bottom


I would assume that I would use:

.JoinFixedCells(1, 0, 4, 0);


to make the Column on the left (1), row (0), span to the right to column (4), row (0).

Any thoughts on what I am doing wrong?

Jeremy
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: VirtualArrayCtrl embedded Ctrls
Next Topic: GridCtrl changed add row behavior
Goto Forum:
  


Current Time: Tue Apr 23 20:43:10 CEST 2024

Total time taken to generate the page: 0.01707 seconds