Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpreadsheetViewOptions.RowHeaderWidth Property

Gets or sets the width of the row headers in pixels.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

[DefaultValue(0)]
public int RowHeaderWidth { get; set; }

#Property Value

Type Default Description
Int32 0

An integer value that is the row header width in pixels.

#Property Paths

You can access this nested property as listed below:

Object Type Path to RowHeaderWidth
SpreadsheetControlOptions
.View .RowHeaderWidth

#Remarks

Use the RowHeaderWidth property to explicitly set the width of row headers in the SpreadsheetControl. You can also specify the height of column headers using the SpreadsheetViewOptions.ColumnHeaderHeight property. Use these properties along with custom draw events to customize the appearance of the SpreadsheetControl.

The image below shows the control with custom row and column headers.

SpreadsheetControl_CustomColumnRowHeaders

See Also