Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Silverlight

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft