title: Whis is the column not resize?
body: <p>I have a datagrid and I want to set the width of a column according to some values, so I am trying to use a multibinding in this way:</p>
  <pre><code>                        &lt;DataGridTextColumn.Width&gt;
                              &lt;MultiBinding Converter=&quot;{StaticResource MyMultiValueConverter}&quot;&gt;
                                  &lt;Binding Source=&quot;{x:Reference ProxyElement}&quot; Path=&quot;DataContext.MyProperty&quot; /&gt;
                                  &lt;Binding Source=&quot;0&quot;/&gt;
                              &lt;/MultiBinding&gt;
                          &lt;/DataGridTextColumn.Width&gt;
  </code></pre>
  <p>The converter is fired, but the width is not changed according to de value it returns.</p>
  <p>However, I have a similiar converter to set the visibility and it works as expected:</p>
  <pre><code>                        &lt;DataGridTextColumn.Visibility&gt;
                              &lt;MultiBinding Converter=&quot;{StaticResource MyConverterVisibilityMultiValueConverter}&quot;&gt;
                                  &lt;Binding Source=&quot;{x:Reference ProxyElement}&quot; Path=&quot;DataContext.NombreProveedor&quot; /&gt;
                                  &lt;Binding Source=&quot;0&quot;/&gt;
                              &lt;/MultiBinding&gt;
                          &lt;/DataGridTextColumn.Visibility&gt;
  </code></pre>
  <p>Why does it work with the visibivilty but not with the width?</p>
  <p>Thanks.</p>
  <p>EDIT:</p>
  <p>I have tried setting the width of the textblock inside the column in this way:</p>
  <p>Value converter:</p>
  <pre><code>public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
  {
  //I have tried both ways, DataGridLength and return 20
      //return new DataGridLength(20, DataGridLengthUnitType.SizeToHeader);
      return 20;
  }
  </code></pre>
  <p>Xaml: Option 1, setting the width directly, it works</p>
  <pre><code>                    &lt;DataGridTextColumn.ElementStyle&gt;
                          &lt;Style TargetType=&quot;{x:Type TextBlock}&quot;&gt;
                              &lt;Setter Property=&quot;Width&quot; Value=&quot;20&quot;/&gt;
                          &lt;/Style&gt;
                      &lt;/DataGridTextColumn.ElementStyle&gt;
                  &lt;/DataGridTextColumn&gt;
  </code></pre>
  <p>Xaml: option 2: trying with value converter, it doesn't work</p>
  <pre><code>                    &lt;DataGridTextColumn.ElementStyle&gt;
                          &lt;Style TargetType=&quot;{x:Type TextBlock}&quot;&gt;
                              &lt;Setter Property=&quot;Width&quot;&gt;
                                  &lt;Setter.Value&gt;
                                      &lt;MultiBinding Converter=&quot;{StaticResource MyMultiValueConverter}&quot; &gt;
                                          &lt;Binding Source=&quot;{x:Reference ProxyElement}&quot; Path=&quot;DataContext.Property1&quot; /&gt;
                                          &lt;Binding Source=&quot;{x:Reference ProxyElement}&quot; Path=&quot;DataContext.Property2&quot; /&gt;
                                      &lt;/MultiBinding&gt;
                                  &lt;/Setter.Value&gt;
                              &lt;/Setter&gt;
                          &lt;/Style&gt;
                      &lt;/DataGridTextColumn.ElementStyle&gt;
                  &lt;/DataGridTextColumn&gt;
  </code></pre>
  <p>The converter is rised and it returns 20, but the column doesn't take this value.</p>