DataGridColumn.ActualWidth Property

Gets the current width of the column in pixels.

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

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.

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.


Supported in: 5, 4, 3

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

Community Additions