0

What tag do we use to move a text in DataGrid Header to a new line?

E.g I have the following XAML code:

 <Grid>
        <DataGrid x:Name="Grid" ColumnHeaderHeight="80">
            <DataGrid.Columns>
                <DataGridTextColumn  IsReadOnly="True" Header="Hodor" Width="100" />
            </DataGrid.Columns>
        </DataGrid>
    </Grid>

What tag should I add and where?

ASh
  • 34,632
  • 9
  • 60
  • 82

1 Answers1

0
<DataGrid x:Name="Grid" ColumnHeaderHeight="80">
            <DataGrid.Columns>
                <DataGridTextColumn  IsReadOnly="True" Header="Line one&#x0a;Line two" Width="100" >
                    
                </DataGridTextColumn>
            </DataGrid.Columns>
         
        </DataGrid>
    </Grid>
</Grid>
Osama
  • 27
  • 1
  • 4