title: WPF Toolkit DataGridTextColumn with scrollbar
body: <p>I designed a project that has user defined controls with datagrids. Some columns of control's datagrid are DataGridTextColumn with twoway binding (to read and write data from/to binding model). Some cells of DataGridTextColumn contains very long text and can't be succesfully displayed in cell. I've decide to put scrollbars in this cells. Every cell column contains some user defined style, so I create my own with DataGridCell template replacment.
  Here it is:</p>
  
  <pre><code>&lt;Style x:Key="DataGridTextColumnWithScrollBar" TargetType="{x:Type Control}" BasedOn="{StaticResource {x:Type wpf_toolkit:DataGridCell}}"&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="{x:Type Control}"&gt;
                  &lt;ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content, Mode=TwoWay}"&gt;
                      &lt;ContentPresenter.ContentTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;TextBox Text="{Binding Path=Text, Mode=TwoWay}"
                                       TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" 
                                       VerticalAlignment="Stretch" Margin="2,0" BorderThickness="0"/&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/ContentPresenter.ContentTemplate&gt;
                  &lt;/ContentPresenter&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>Style DataGridTextColumnWithScrollBar merged with base datagrid text column cell style. It works fine, but I can't edit text(all scrolls appears, but after text was edited, model doesn't updates). Is there any solutions to resolve my problem? I tried many ways (for example, <a href="https://stackoverflow.com/questions/7100251/wpf-nested-binding-in-a-controltemplate">WPF Nested binding in a controltemplate</a>) but nothing works...</p>
  
  <p>P.S. I cannot change datagridtext column to datatemplate textcolumn because controls are stored in external dll library. </p>
  
  <p>Thanks in advance.</p>