title: viewmodel for gridview with column headers c#
body: <p>I need a solution for this.</p>
  
  <p>I need to create a view model for grid view. This viewmodel should be a strong typed one. ex. </p>
  
  <pre><code>List&lt;Person&gt; lstPersons=new List&lt;Person&gt;();
  </code></pre>
  
  <p>something like this. also, with this I should be able to have custom column header names. I can go with data annotation with enabling <code>AutoGenerateColumns="True"</code>
  like,</p>
  
  <pre><code>class Person
  {
        [DisplayName("Person Name")]
        public string name { get; set; }
  }
  </code></pre>
  
  <p>something like this. But I have 2 issues with this.</p>
  
  <ol>
  <li><p>I donno how to change this display name at run time.</p></li>
  <li><p>Im using telerik RADGridView. with that when I'm using <code>AutoGenerateColumns="True"</code> and <code>ShowColumnFooters="True"</code>, the whole UI get stucked. I think this s an error with telerik controls. So I have to define all columns in XAML and add binding path for each as well.</p></li>
  </ol>
  
  <p>Anyway, This is possible with DataTable I think. but I feel data tables are very oldie struct and heavy object.</p>
  
  <p>How to create a Viewmodel to achieve this? Any suggestions ? </p>
  
  <p>Feel free to ask any question. im not sure above description is clear to everyone.</p>