title: Unable to set Row.Readonly=false with databound DataGridView
body: <p>I have a <code>dataGridView</code> that is bound to a <code>tableAdaptor</code>, behind this table is a MS SQL server database. </p>
  
  <p>In <code>Form1_Load</code> i have <code>dataGridView1.ReadOnly = true;</code> and in the <code>dataGridView1</code> controls on the form i have <code>Enable Editing</code> selected. </p>
  
  <p><a href="https://i.stack.imgur.com/bQzQH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bQzQH.png" alt="![Showing the controls set"></a></p>
  
  <p>I then fill the <code>dataGridView</code> at run time here: <code>stockTableAdapter.Fill(sIMSDataSet.Stock);</code></p>
  
  <p>What i am trying to do, is have a user select any cell within a row and click a button which then allows the user to edit that row. </p>
  
  <p>I have tried various ways to get the row the user currently has selected to be set to <code>ReadOnly=flase</code> but i can't get it to work. </p>
  
  <p>This is what i have tried: </p>
  
  <pre><code>  private void button7_Click_1(object sender, EventArgs e)
          {
              if (dataGridView1.CurrentRow.ReadOnly == true)
              {
                  dataGridView1.CurrentRow.ReadOnly = false;
                  dataGridView1.EditMode = DataGridViewEditMode.EditOnEnter;
              }
          }
  </code></pre>
  
  <p>And i have also tried the answer is this question:</p>
  
  <p><a href="https://stackoverflow.com/questions/17609154/unable-to-set-row-readonly-false-in-datagridview-in-winforms/17639532#comment95914041_17639532">unable to set Row.Readonly=false in Datagridview in winforms</a></p>
  
  <p>The user suggests in his testing he was not able to set the row to <code>ReadOnly=flase</code> on databound <code>dataGridViews</code>. But seeing as the answer is now 6 years old i was hoping there was a way to do it now. </p>