title: Set entire GridView to be read-only
body: <p>I know you can specify specific columns to only be <code>readonly</code> but does C# have a way of setting the entire grid to read only?</p>
  
  <p>For example, I know this will set 1 column to read only,</p>
  
  <pre><code>dataGridView1.Columns["ColumnName"].ReadOnly = true;
  </code></pre>
  
  <p>I tried this, but threw a compile-time error,</p>
  
  <pre><code>dataGridView1.ReadOnly = true;
  </code></pre>
  
  <p>The error:</p>
  
  <blockquote>
    <p>Grid view does not contain a definition for Read Only</p>
  </blockquote>