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 8:25AM
    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 8:25AM
    AddValue(, [2001, 2], [1500]);
    glad you found it
    the add value([rowheadervalue,index ],[columnheader,index],[cellvalue]) method

Leave a Comment