monstr
monstr

Reputation: 1730

Wpf How to set Grid Column ActualWidth

Is it generally possible in Grid control to set ActualWidth of Column? This property has only getter. May be there is other way to assign some value to it?

I can set MinWidth, can set Width, so I think it would be logical to have possibility to set ActualWidth.

Upvotes: 1

Views: 855

Answers (1)

Clemens
Clemens

Reputation: 128136

Set the column's Width property:

column.Width = new GridLength(100, GridUnitType.Pixel);

Upvotes: 2

Related Questions