问题
Is there a way to hide the A,B,C column headers and 1,2,3 row headers in the SpreadsheetGear 2010 control? We are using this as a display only control and showing these headings gives the impression that the data can be edited.
Thanks.
回答1:
I found it. It is in the WorkbookView.ActiveWorksheetWindowInfo.DisplayHeadings. You can show and hide several elements from this class, including gridlines, formulas and outlines.
Cool.
回答2:
I found it under WindowInfo. For example:
IWorksheet ws = wb.Worksheets[0];
ws.WindowInfo.DisplayHeadings = false;
来源:https://stackoverflow.com/questions/3426555/hiding-column-and-row-headings-in-spreadsheetgear-control