TfrxCrossView and StringGrid and ColumnHeader ?
Hello,
Excuse my English, y'm French.
How to obtain a heading of column (ColumnHeader) of a grid (TfrxCrossView)
are equivalent has that below when several cells the heading are identical?
+
+---+---+---+---+---+---+---+---+
| Clients |opt|Val |opt|Val|opt |Val|opt|Val|
+
+---+---+---+---+---+---+---+---+
?
I tested the 2 following solutions but the result is not good?
This:
+
+---+---+
| Clients |opt|Val |
+
+---+---+
-> for i := 1 to (MyGrid.RowCount - 1) do
-> for j := 0 to (MyGrid.ColCount - 1) do
-> Cross.AddValue(, [MyGrid.Cells[j, 0]], [MyGrid.Cells[j, i]]);
Or this:
+
+---+---+---+---+---+---+---+---+
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
+
+---+---+---+---+---+---+---+---+
| Clients |opt|Val |opt|val |opt|Val|opt|Val |
+
+---+---+---+---+---+---+---+---+
-> for i := 0 to (MyGrid.RowCount - 1) do
-> for j := 0 to (MyGrid.ColCount - 1) do
-> Cross.AddValue(, [j], [MyGrid.Cells[j, i]]);
Help me !
Dergen.
Excuse my English, y'm French.
How to obtain a heading of column (ColumnHeader) of a grid (TfrxCrossView)
are equivalent has that below when several cells the heading are identical?
+
+---+---+---+---+---+---+---+---+
| Clients |opt|Val |opt|Val|opt |Val|opt|Val|
+
+---+---+---+---+---+---+---+---+
?
I tested the 2 following solutions but the result is not good?
This:
+
+---+---+
| Clients |opt|Val |
+
+---+---+
-> for i := 1 to (MyGrid.RowCount - 1) do
-> for j := 0 to (MyGrid.ColCount - 1) do
-> Cross.AddValue(, [MyGrid.Cells[j, 0]], [MyGrid.Cells[j, i]]);
Or this:
+
+---+---+---+---+---+---+---+---+
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
+
+---+---+---+---+---+---+---+---+
| Clients |opt|Val |opt|val |opt|Val|opt|Val |
+
+---+---+---+---+---+---+---+---+
-> for i := 0 to (MyGrid.RowCount - 1) do
-> for j := 0 to (MyGrid.ColCount - 1) do
-> Cross.AddValue(, [j], [MyGrid.Cells[j, i]]);
Help me !
Dergen.