title: Add buttons to datagridview in windows form
body: <p>I want to add two buttons onto datagridview. Now they are on the right side. But I want to locate them on the left.</p>
  <p>The other thing is I want to add an update event for &quot;Edit&quot; button. Is it</p>
  <pre><code>private void Edit_Click(object sender, EventArgs e)
  {
  
  }
  </code></pre>
  <p>Form code:</p>
  <pre><code>private void Form1_Load(object sender, EventArgs e)
  {
     // TODO: This line of code loads data into the 'qDataSet.Metric' table. 
     // You can move, or remove it, as needed.
     this.metricTableAdapter.Fill(this.qDataSet.Metric);
     DataGridViewButtonColumn EditColumn = new DataGridViewButtonColumn();
     EditColumn.Text = &quot;Edit&quot;;
     EditColumn.Name = &quot;Edit&quot;;
     EditColumn.DataPropertyName = &quot;Edit&quot;;
     dataGridView1.Columns.Add(EditColumn);
     DataGridViewButtonColumn DelColumn = new DataGridViewButtonColumn();
     DelColumn.Text = &quot;Delete&quot;;
     DelColumn.Name = &quot;Delete&quot;;
     DelColumn.DataPropertyName = &quot;Delete&quot;;
     dataGridView1.Columns.Add(DelColumn);
  }
  </code></pre>
  <p>The image likes:
  <img src="https://i.stack.imgur.com/UDrfj.png" alt="buttons" /></p>
  <p>Thank you.</p>