title: How to show only certain columns in a DataGridView with custom objects
body: <p>I have a DataGridView and I need to add custom objects to it. Consider the following code: </p>
  
  <pre><code>DataGridView grid = new DataGridView();
  grid.DataSource = objects;
  </code></pre>
  
  <p>With this code I get a DataGridView object with all properties as columns. In my case, I don't want to show all of this information; I want to show just two or three columns. I know that I can set </p>
  
  <p><code>AutoGenerateColumns = false</code>. </p>
  
  <p>But I do not know how to proceed afterwards. 
  One option is to hide all columns that do not interest me, but I think it would be better to do it in the opposite way. How can I do this?</p>