DataGrid.RowHeaderWidth Property
Silverlight
Gets or sets the width of the row header column.
Namespace: System.Windows.Controls
Assembly: System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)
<sdk:DataGrid RowHeaderWidth="double"/>
Property Value
Type: System.DoubleThe width of the row header column in pixels. The default is Double.NaN.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | When setting this property, the specified value is less than 4 or greater than 32768. |
Dependency property identifier field: RowHeaderWidthProperty
By default, DataGrid row headers are not displayed. To display row headers, the HeadersVisibility property must be set to DataGridHeadersVisibility.Row or DataGridHeadersVisibility.All. When row headers are displayed, they auto-size to fit their content by default.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.