Crosstab fill Header manually

I have a string grid which I want to print out, like in your printing string grid example
Now I want to add the column header.
I dont know how. The column header are just simple numbers. I think I have to set the headers manually, but how. The rows are filled like in your example
for j := 1 to 16 do
for i := 1 to 16 do
Cross.AddValue([j], , [StringGrid1.Cells[i-1 , j-1]]);

But how can I edit the text of the headers ? I can#t find anything in the documentation

Comments

  • edited 11:05PM
    Found it. For other it may be usefull.
    The second parameter in the addvalue function is the heading ( in my example)
  • gordkgordk St.Catherines On. Canada.
    edited 11:05PM
    AddValue(, [2001, 2], [1500]);
    glad you found it
    the add value([rowheadervalue,index ],[columnheader,index],[cellvalue]) method

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.