Hiding column and row headings in SpreadsheetGear control

冷暖自知 提交于 2019-12-11 10:14:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!