WPF DataGridCell Template with TextBlock - Binding?
i replace the ContentPresenter in the DataGridCell 's Template with a TextBlock an now i search for the correct Binding to the content. The normal way is Text="{TemplateBinding Content} for the TextBlock - it doesn't work. Also Text="{Binding RelativeSource={RelativeSource TemplatedParent},Path=Content, Mode=TwoWay}" doesn't work correct. Any other ideas? Suppose you have changed the DataGridCell Template to the following <ControlTemplate TargetType="{x:Type DataGridCell}"> <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="