title: Set Column Header Name in XAML- WPF
body: <p>I would like to set the user defined column Header in a WPF datagrid that is bound to a database.</p>
  
  <p>for displaying ServerID, EventlogID I would like to display as Server, Event Log  in the column header. </p>
  
  <p>I have tried these already ...</p>
  
  <pre><code> &lt;DataGrid x:Name="dataGrid1" ItemsSource="{Binding}" AutoGenerateColumns="True" &gt;
       &lt;DataGrid.Columns&gt;
          &lt;DataGridTextColumn Header="Server" Width="Auto" IsReadOnly="True"  Binding="{Binding Path=ServerID}" /&gt;
              &lt;DataGridTextColumn Header="Event Log" Width="Auto" IsReadOnly="True"  Binding="{Binding Path=EventLogID}" /&gt;
        &lt;/DataGrid.Columns&gt;
     &lt;/DataGrid&gt;
  </code></pre>
  
  <p>This works fine, and it changes the Column Header and the datas are also displayed.</p>
  
  <p>But my problem it is displayed twice as first two column header from XAML and other two column header from the DB.</p>
  
  <pre><code>  |Server|Event Log|ServerID|EventLogID|
  </code></pre>
  
  <p>how to overcome this replication ?
  Kindly help !</p>