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
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
The second parameter in the addvalue function is the heading ( in my example)
glad you found it
the add value([rowheadervalue,index ],[columnheader,index],[cellvalue]) method