title: how to set the X:Name property through C# in wpf datagrid column
body: <p>In WPF Datagrid, i am adding Column dynamically for that i want to set X:Name property of DataGrid column by C#</p>
  
  <p>My Code:</p>
  
  <pre><code>DataGridTextColumn clm = new DataGridTextColumn();
                      clm.Header = "Marks";
                      clm.Width = 100;
                      clm.IsReadOnly = false;
                      dgChapters.Columns.Add(clm);
  </code></pre>
  
  <p>How to set X:Name property on DataGridTextColumn by C#</p>