title: DataGridView Column binding in WPF
body: <p>I want to design a <code>DataGrid</code> as shown in the picture below:</p>
  
  <p><img src="https://i.stack.imgur.com/uq4Gm.png" alt="enter image description here"></p>
  
  <p>I am planning to bind the <code>DataGrid</code> to list of objects of a class. The class I was planning is </p>
  
  <pre><code>class Class1
  {
      public Int32 Index { get; set; }
      public string Colour { get; set; }
      public string Location { get; set; }
      public string Srno { get; set; }
  }
  </code></pre>
  
  <p>I have a problem. I would like to have one more colour property which I can bind directly to the colour of the <code>DataGrid</code> in column2. But since I am planning to set <code>DataGrid</code> binding to list of this object, the new property will be recognized as a column itself. How do I avoid that? Any suggetions.</p>