Forum > FPSpreadsheet
TsWorbookSource
straetch:
Interesting.
I want to remove the row and column headers from the worksheetgrid (which is linked to the workbooksource).
I can preset the option ShowHeaders to false at design time, but at runtime it shows the headers anyway.
If I set worksheetgrid.showheaders := false in the program, I get a SIGSEGV (fpspreadsheetgrid.pas at linen7134).
I understand from the above the content displayed in the grid follows the content of the worksheet.
But I presume the display attributes of the grid belong exclusively to the grid. So I did not expect a problem.
wp:
--- Quote from: straetch on November 04, 2024, 10:51:44 am ---I can preset the option ShowHeaders to false at design time, but at runtime it shows the headers anyway.
--- End quote ---
There was a conflict in the communication between the workbooksource and the worksheetgrid. Although the grid had ShowHeader=false this setting was overwritten at runtime when the workbooksource created a new internal workbook in which the worksheets by default are formatted for ShowHeader=true. Should be fixed in the current ccr version, hopefully without side-effects...
--- Quote from: straetch on November 04, 2024, 10:51:44 am ---If I set worksheetgrid.showheaders := false in the program, I get a SIGSEGV (fpspreadsheetgrid.pas at linen7134).
--- End quote ---
This should not happen, and it does not happen in my attached demo program. Maybe you can extract a standalone, simple test program from your project which you can attach here to demonstrate the issue.
I understand from the above the content displayed in the grid follows the content of the worksheet.
But I presume the display attributes of the grid belong exclusively to the grid. So I did not expect a problem.
[/quote]
Navigation
[0] Message Index
[*] Previous page