Back to Devexpress

SpreadsheetViewOptions.ShowRowHeaders Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetviewoptions-6f66cd95.md

latest3.2 KB
Original Source

SpreadsheetViewOptions.ShowRowHeaders Property

Gets or sets whether row headers are displayed in the SpreadsheetControl. This is a dependency property.

Namespace : DevExpress.Xpf.Spreadsheet

Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public bool ShowRowHeaders { get; set; }
vb
Public Property ShowRowHeaders As Boolean

Property Value

TypeDescription
Boolean

true, to display row headers; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowRowHeaders
SpreadsheetControlOptions

.View .ShowRowHeaders

|

Remarks

The following examples demonstrate how to hide the column and row headers in the SpreadsheetControl:

  • In XAML:

  • In code-behind:

This property value is not saved to a workbook. It only specifies how a document is displayed in the SpreadsheetControl.

To specify whether to show or hide column and row headers in a particular worksheet, use the WorksheetView.ShowHeadings property. Note that if you load a document with worksheets whose headers are hidden, neither column or row headers will be displayed, regardless of the SpreadsheetControl’s view options.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowRowHeaders property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-spreadsheet-control-create-a-data-entry-form/CS/WpfDataEntryFormSample/MainWindow.xaml#L41

xml
<dxsps:SpreadsheetControlOptions.View>
    <dxsps:SpreadsheetViewOptions ShowColumnHeaders="False" ShowRowHeaders="False" ShowPrintArea="False"/>
</dxsps:SpreadsheetControlOptions.View>

See Also

How to: Show and Hide Row and Column Headers

SpreadsheetViewOptions Class

SpreadsheetViewOptions Members

DevExpress.Xpf.Spreadsheet Namespace