DataGridColumn.ActualWidth Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the current width of the column in pixels.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

Syntax

'Declaration
Public ReadOnly Property ActualWidth As Double
public double ActualWidth { get; }

Property Value

Type: System.Double
The width of the column in pixels. Returns 0 if the column has not been added to a DataGrid.

Remarks

This property gets the actual visible width of the column after the DataGrid.ColumnWidth, DataGrid.MaxColumnWidth, DataGrid.MinColumnWidth, DataGridColumn.Width, DataGridColumn.MaxWidth, and DataGridColumn.MinWidth settings have been taken into account.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.