title: Why I'm getting this error when deleting a row in DataGridView control?
body: <p>Why I'm getting this error when deleting a row in DataGridView control?
  How can I address this issue?</p>
  
  <pre><code>Rows cannot be programmatically removed unless the DataGridView is data-bound to an IBindingList that supports change notification and allows deletion.
  </code></pre>
  
  <hr>
  
  <pre><code>public partial class Form1 : Form
      {
          List&lt;Person&gt; person = new List&lt;Person&gt;();
  
          public Form1()
          {
              InitializeComponent();
          }
  
          void Form1Load(object sender, EventArgs e)
          {
              person.Add(new Person("McDonalds", "Ronald"));
              person.Add(new Person("Rogers", "Kenny"));          
              dataGridView1.DataSource = person;
          }
  
          void BtnDeleteClick(object sender, EventArgs e)
          {
              dataGridView1.Rows.RemoveAt(dataGridView1.SelectedRows[0].Index);
          }
      }
  </code></pre>