Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Datagrid Header New Line

$
0
0

Hello,

i am binding a textbox to datagrid in xaml for filtering purpose, the code is working as expected. However i would like to move the textbox to New Line. Can someone suggest how to get textbox to new line. The snapshot of my existing datagrid header is below.

The below is my part of xaml code

<DataGridTextColumn Header="CustomerName " Width="Auto" Binding="{Binding CustomerName}" ><DataGridTextColumn.HeaderTemplate><DataTemplate><StackPanel Orientation="Horizontal"><TextBlock Text="{Binding Content,RelativeSource={RelativeSource Mode=TemplatedParent}}"/><TextBox x:Name="txtCustomerName" Width="100" TextChanged="txtCustomerName_TextChanged" /></StackPanel></DataTemplate></DataGridTextColumn.HeaderTemplate></DataGridTextColumn>


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>